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
- WebConvert.cs
- BasePropertyDescriptor.cs
- XsltInput.cs
- XmlJsonReader.cs
- dbdatarecord.cs
- ConversionHelper.cs
- XmlEntity.cs
- ResourceDictionaryCollection.cs
- ObjectSet.cs
- UInt32Converter.cs
- ComponentEvent.cs
- CopyAction.cs
- CollectionDataContract.cs
- DebugInfoGenerator.cs
- DefaultHttpHandler.cs
- XPathItem.cs
- WindowsFormsSectionHandler.cs
- DefaultPropertiesToSend.cs
- AdRotator.cs
- TextServicesProperty.cs
- ImageCollectionEditor.cs
- SchemaDeclBase.cs
- EnvelopedPkcs7.cs
- RootBuilder.cs
- DataRowExtensions.cs
- SymbolType.cs
- DbConnectionHelper.cs
- HashFinalRequest.cs
- HttpRequestCacheValidator.cs
- HtmlPanelAdapter.cs
- BulletChrome.cs
- mediaeventargs.cs
- LoginViewDesigner.cs
- XmlSiteMapProvider.cs
- SafePEFileHandle.cs
- ReflectionTypeLoadException.cs
- InputMethodStateChangeEventArgs.cs
- UnhandledExceptionEventArgs.cs
- ThreadExceptionEvent.cs
- MetafileHeader.cs
- MachineKeyConverter.cs
- Maps.cs
- AnnotationElement.cs
- GradientStopCollection.cs
- BlurEffect.cs
- WorkflowDebuggerSteppingAttribute.cs
- HttpVersion.cs
- documentation.cs
- GraphicsPathIterator.cs
- CompositeCollection.cs
- IISUnsafeMethods.cs
- LinqToSqlWrapper.cs
- ServiceCredentials.cs
- ListenerHandler.cs
- FontSizeConverter.cs
- XamlPointCollectionSerializer.cs
- SoapSchemaMember.cs
- ControlCollection.cs
- PkcsMisc.cs
- Int32.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CommonProperties.cs
- EditorPart.cs
- RawStylusInputCustomData.cs
- InvalidOleVariantTypeException.cs
- FixUpCollection.cs
- SkewTransform.cs
- DeclaredTypeElement.cs
- NetMsmqBinding.cs
- TextRangeBase.cs
- ConfigXmlElement.cs
- IconHelper.cs
- KerberosRequestorSecurityToken.cs
- brushes.cs
- FileAuthorizationModule.cs
- tooltip.cs
- RegisteredDisposeScript.cs
- ComponentEvent.cs
- ObjectStateFormatter.cs
- RenameRuleObjectDialog.Designer.cs
- GridProviderWrapper.cs
- FontCacheUtil.cs
- ComponentGuaranteesAttribute.cs
- ParallelSeparator.xaml.cs
- ExcludePathInfo.cs
- SizeValueSerializer.cs
- LayoutEditorPart.cs
- BinaryMethodMessage.cs
- IncrementalReadDecoders.cs
- PhonemeConverter.cs
- DbReferenceCollection.cs
- XPathNodeIterator.cs
- PagerSettings.cs
- ExceptionCollection.cs
- ILGenerator.cs
- CellCreator.cs
- Permission.cs
- FileRecordSequenceCompletedAsyncResult.cs
- TaskForm.cs
- AppDomainAttributes.cs