Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Automation / Peers / LabelAutomationPeer.cs / 1 / LabelAutomationPeer.cs
using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class LabelAutomationPeer : FrameworkElementAutomationPeer { /// public LabelAutomationPeer(Label owner): base(owner) {} /// override protected string GetClassNameCore() { return "Text"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } /// override public object GetPattern(PatternInterface patternInterface) { return null; } // Return the base without the AccessKey character /// override protected string GetNameCore() { string result = base.GetNameCore(); if (!string.IsNullOrEmpty(result)) { Label label = (Label)Owner; if (label.Content is string) { return AccessText.RemoveAccessKeyMarker(result); } } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class LabelAutomationPeer : FrameworkElementAutomationPeer { /// public LabelAutomationPeer(Label owner): base(owner) {} /// override protected string GetClassNameCore() { return "Text"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Text; } /// override public object GetPattern(PatternInterface patternInterface) { return null; } // Return the base without the AccessKey character /// override protected string GetNameCore() { string result = base.GetNameCore(); if (!string.IsNullOrEmpty(result)) { Label label = (Label)Owner; if (label.Content is string) { return AccessText.RemoveAccessKeyMarker(result); } } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PassportIdentity.cs
- AsymmetricSecurityBindingElement.cs
- Int16.cs
- AssemblyBuilder.cs
- DataSourceView.cs
- FrameworkElement.cs
- ReadOnlyCollectionBase.cs
- XmlDownloadManager.cs
- ProfileGroupSettings.cs
- CryptoStream.cs
- SpotLight.cs
- WebGetAttribute.cs
- XmlSignatureManifest.cs
- DesignerForm.cs
- NavigationPropertyEmitter.cs
- SqlParameter.cs
- Converter.cs
- EncryptedData.cs
- Activator.cs
- ApplicationServiceManager.cs
- TdsRecordBufferSetter.cs
- _AutoWebProxyScriptHelper.cs
- HttpException.cs
- XmlNullResolver.cs
- TableStyle.cs
- StyleTypedPropertyAttribute.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ItemsPresenter.cs
- IsolatedStorageSecurityState.cs
- DependencyPropertyKey.cs
- ListViewDeleteEventArgs.cs
- Slider.cs
- AssemblyNameProxy.cs
- OutputScope.cs
- FileDialogCustomPlace.cs
- DataGridView.cs
- RenderingBiasValidation.cs
- RadioButton.cs
- SponsorHelper.cs
- ping.cs
- BitmapImage.cs
- TextPattern.cs
- BaseCodePageEncoding.cs
- AdapterUtil.cs
- TraceSwitch.cs
- Resources.Designer.cs
- DocumentCollection.cs
- RadioButton.cs
- EventLogReader.cs
- Pair.cs
- OverlappedAsyncResult.cs
- XmlILModule.cs
- ForwardPositionQuery.cs
- TimeoutException.cs
- _HTTPDateParse.cs
- DataRowView.cs
- PackagingUtilities.cs
- RelatedView.cs
- OutputCacheSettingsSection.cs
- ComponentEditorForm.cs
- Relationship.cs
- NativeMethods.cs
- FormsIdentity.cs
- EventMap.cs
- SystemIPGlobalStatistics.cs
- ISessionStateStore.cs
- _SecureChannel.cs
- EdmMember.cs
- HttpWebResponse.cs
- JsonEncodingStreamWrapper.cs
- AssemblyUtil.cs
- FixedTextBuilder.cs
- PhoneCall.cs
- ProfileProvider.cs
- ColorConvertedBitmap.cs
- Mutex.cs
- XmlNodeReader.cs
- View.cs
- StringDictionary.cs
- BitmapEffectOutputConnector.cs
- securitymgrsite.cs
- ConfigXmlAttribute.cs
- StatementContext.cs
- QilLiteral.cs
- FontInfo.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- SimpleRecyclingCache.cs
- InternalControlCollection.cs
- RectConverter.cs
- ResetableIterator.cs
- ParameterCollection.cs
- ControlIdConverter.cs
- WindowsAuthenticationModule.cs
- DynamicFilter.cs
- X509ScopedServiceCertificateElementCollection.cs
- TypeInfo.cs
- SimpleMailWebEventProvider.cs
- ColorAnimationBase.cs
- EpmContentDeSerializerBase.cs
- BypassElement.cs