Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IfAction.cs
- KeyEvent.cs
- SoapSchemaExporter.cs
- TextBoxAutoCompleteSourceConverter.cs
- IOException.cs
- DictionarySurrogate.cs
- TextModifierScope.cs
- StorageEntityContainerMapping.cs
- WmlLinkAdapter.cs
- SimpleTableProvider.cs
- PowerModeChangedEventArgs.cs
- NameService.cs
- CachedPathData.cs
- Resources.Designer.cs
- ExpandSegmentCollection.cs
- XmlQualifiedName.cs
- ButtonField.cs
- LogExtentCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- JsonReaderDelegator.cs
- XmlSchemaValidator.cs
- HTTPNotFoundHandler.cs
- ServiceBusyException.cs
- _LoggingObject.cs
- XmlLinkedNode.cs
- IListConverters.cs
- URL.cs
- UnknownWrapper.cs
- AudioBase.cs
- ExpressionBuilder.cs
- LayoutManager.cs
- ParallelQuery.cs
- EditingCommands.cs
- ArrayList.cs
- SafeNativeMethods.cs
- DataServiceRequestOfT.cs
- WindowsTokenRoleProvider.cs
- DynamicUpdateCommand.cs
- NewArrayExpression.cs
- HostingEnvironmentException.cs
- MembershipValidatePasswordEventArgs.cs
- NameNode.cs
- SchemaObjectWriter.cs
- FieldCollectionEditor.cs
- SrgsOneOf.cs
- SyntaxCheck.cs
- FormClosedEvent.cs
- HttpPostedFile.cs
- DrawingDrawingContext.cs
- BamlStream.cs
- MailDefinition.cs
- SamlAdvice.cs
- ImageBrush.cs
- NamedPipeConnectionPool.cs
- AccessDataSource.cs
- IncrementalHitTester.cs
- _HTTPDateParse.cs
- MetadataCacheItem.cs
- ClientSideQueueItem.cs
- XamlNamespaceHelper.cs
- Drawing.cs
- FacetDescriptionElement.cs
- RpcCryptoRequest.cs
- CodeGenHelper.cs
- SafeNativeMethods.cs
- HtmlEncodedRawTextWriter.cs
- PageContentCollection.cs
- WebColorConverter.cs
- UIElementIsland.cs
- Brush.cs
- PseudoWebRequest.cs
- PreloadHost.cs
- TimeStampChecker.cs
- ToolStripDropDownClosedEventArgs.cs
- WsatConfiguration.cs
- CFStream.cs
- ScriptHandlerFactory.cs
- BigInt.cs
- EnumerableCollectionView.cs
- ContainerControl.cs
- TriggerBase.cs
- AccessText.cs
- MediaElement.cs
- PartialCachingControl.cs
- ProxyWebPartManager.cs
- ContentElement.cs
- ChannelManager.cs
- BitmapSource.cs
- GridViewActionList.cs
- XpsException.cs
- StatusBarItem.cs
- PageStatePersister.cs
- RuleSetBrowserDialog.cs
- XmlUtil.cs
- SmtpLoginAuthenticationModule.cs
- MonitorWrapper.cs
- MemberMemberBinding.cs
- ImplicitInputBrush.cs
- EntityTemplateFactory.cs
- XmlQualifiedName.cs