Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / LabelAutomationPeer.cs / 1305600 / 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; } // 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
- VisualBasicSettings.cs
- Point4D.cs
- MaterialGroup.cs
- SolidColorBrush.cs
- EncoderNLS.cs
- FrameworkTemplate.cs
- RawStylusInputCustomDataList.cs
- XmlILStorageConverter.cs
- MissingManifestResourceException.cs
- RIPEMD160.cs
- StylusPlugInCollection.cs
- Vertex.cs
- CngAlgorithm.cs
- ConvertEvent.cs
- ReadOnlyPermissionSet.cs
- InputQueue.cs
- ProcessInputEventArgs.cs
- EntityViewGenerationAttribute.cs
- NavigationService.cs
- DocumentViewerAutomationPeer.cs
- EmptyEnumerator.cs
- IncrementalReadDecoders.cs
- HMAC.cs
- Graphics.cs
- FlowNode.cs
- CompilerTypeWithParams.cs
- ApplicationProxyInternal.cs
- GetIsBrowserClientRequest.cs
- Canvas.cs
- SchemaElementDecl.cs
- RectConverter.cs
- GeometryGroup.cs
- ResolveNameEventArgs.cs
- MobileContainerDesigner.cs
- IPAddressCollection.cs
- InternalConfigEventArgs.cs
- SiteMapDataSourceView.cs
- EventPropertyMap.cs
- RectKeyFrameCollection.cs
- OperatingSystem.cs
- TimelineGroup.cs
- ProxyElement.cs
- BatchServiceHost.cs
- SqlDataSourceFilteringEventArgs.cs
- ScriptReferenceEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- InternalCache.cs
- VScrollProperties.cs
- WebPartZoneCollection.cs
- HtmlControlPersistable.cs
- PageBuildProvider.cs
- ExecutionEngineException.cs
- PropertyItem.cs
- TemplateNameScope.cs
- BoolLiteral.cs
- CodeAttachEventStatement.cs
- EncryptedPackageFilter.cs
- DLinqTableProvider.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- UnsafeNativeMethods.cs
- PersianCalendar.cs
- UncommonField.cs
- ComponentChangedEvent.cs
- InfiniteIntConverter.cs
- FolderLevelBuildProviderCollection.cs
- FileCodeGroup.cs
- KeyFrames.cs
- Timer.cs
- SiteMapSection.cs
- RemoteWebConfigurationHostServer.cs
- WbmpConverter.cs
- DataGridViewComboBoxCell.cs
- autovalidator.cs
- DataSourceCacheDurationConverter.cs
- ColumnTypeConverter.cs
- HandledMouseEvent.cs
- TextEffectResolver.cs
- Ref.cs
- ConfigurationPropertyAttribute.cs
- XmlElementAttributes.cs
- DeviceContext2.cs
- entityreference_tresulttype.cs
- DocumentCollection.cs
- ExpressionBuilderCollection.cs
- AuthenticatedStream.cs
- SqlRemoveConstantOrderBy.cs
- EventLogger.cs
- SqlError.cs
- SelfSignedCertificate.cs
- FontFamilyIdentifier.cs
- OdbcParameterCollection.cs
- CallTemplateAction.cs
- WpfMemberInvoker.cs
- DataGridViewComboBoxColumn.cs
- Atom10FeedFormatter.cs
- XhtmlConformanceSection.cs
- Normalization.cs
- ContextMarshalException.cs
- TopClause.cs
- AuthStoreRoleProvider.cs