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
- XmlSchemaExternal.cs
- WebBrowser.cs
- ReadOnlyDictionary.cs
- WorkItem.cs
- LocalizationComments.cs
- RecognizerInfo.cs
- ListControlBuilder.cs
- DoubleLink.cs
- MembershipSection.cs
- SystemException.cs
- cache.cs
- TaiwanCalendar.cs
- _NetworkingPerfCounters.cs
- WmpBitmapEncoder.cs
- DataGridViewRowHeaderCell.cs
- BitmapEffectInputConnector.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SchemaTableColumn.cs
- ListBase.cs
- DataGridViewAccessibleObject.cs
- ClientFormsAuthenticationCredentials.cs
- HtmlTableCell.cs
- DeploymentExceptionMapper.cs
- ObjectDataSourceMethodEditor.cs
- CompilerCollection.cs
- SmtpReplyReader.cs
- SingleTagSectionHandler.cs
- ColorAnimationUsingKeyFrames.cs
- SHA384Managed.cs
- XmlSchemaValidationException.cs
- XPathEmptyIterator.cs
- ExecutionScope.cs
- PageThemeParser.cs
- Exception.cs
- CodeAccessPermission.cs
- SessionStateItemCollection.cs
- DocumentApplicationJournalEntry.cs
- HttpModuleCollection.cs
- TokenBasedSet.cs
- ContentHostHelper.cs
- WaitHandleCannotBeOpenedException.cs
- TerminatorSinks.cs
- AnimationLayer.cs
- VirtualPathUtility.cs
- XmlNamedNodeMap.cs
- Timer.cs
- RouteItem.cs
- Span.cs
- ConfigXmlText.cs
- BinaryWriter.cs
- HttpListenerResponse.cs
- loginstatus.cs
- MobileCapabilities.cs
- HtmlInputPassword.cs
- SessionParameter.cs
- PrinterResolution.cs
- BlockingCollection.cs
- LiteralText.cs
- WebBrowsableAttribute.cs
- IndexerNameAttribute.cs
- ClientEventManager.cs
- MetadataItem_Static.cs
- CompositeActivityValidator.cs
- XmlException.cs
- DocComment.cs
- BinHexEncoder.cs
- Vars.cs
- WsatExtendedInformation.cs
- PagesSection.cs
- QuestionEventArgs.cs
- SecureUICommand.cs
- EntityType.cs
- WSDualHttpSecurityElement.cs
- GenericWebPart.cs
- DbQueryCommandTree.cs
- DigitShape.cs
- ResourceContainer.cs
- DrawingGroup.cs
- TableItemPattern.cs
- TextBoxLine.cs
- StorageModelBuildProvider.cs
- ProxyWebPartManager.cs
- PropertyToken.cs
- QueueProcessor.cs
- PeerNodeTraceRecord.cs
- SQLStringStorage.cs
- XmlReaderSettings.cs
- CompoundFileStorageReference.cs
- HandlerWithFactory.cs
- MetadataPropertyvalue.cs
- DefaultDiscoveryService.cs
- MergablePropertyAttribute.cs
- StateWorkerRequest.cs
- DataFormats.cs
- XPathBuilder.cs
- CompilationPass2Task.cs
- AuditLogLocation.cs
- DataGridCommandEventArgs.cs
- QueryRelOp.cs
- ListViewGroupConverter.cs