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
- NameObjectCollectionBase.cs
- serverconfig.cs
- ListDataBindEventArgs.cs
- LambdaSerializationException.cs
- Rectangle.cs
- BufferModesCollection.cs
- WindowsTitleBar.cs
- CollectionMarkupSerializer.cs
- OpenCollectionAsyncResult.cs
- infer.cs
- ToolStripTextBox.cs
- Empty.cs
- QueryableFilterRepeater.cs
- BindStream.cs
- PathData.cs
- CreateUserErrorEventArgs.cs
- XamlTreeBuilder.cs
- x509store.cs
- WeakRefEnumerator.cs
- TypedTableGenerator.cs
- RangeValidator.cs
- SettingsPropertyValue.cs
- DataServiceQueryContinuation.cs
- KeyBinding.cs
- PassportPrincipal.cs
- PathStreamGeometryContext.cs
- StringToken.cs
- SqlStream.cs
- QilInvokeEarlyBound.cs
- DataGridRow.cs
- DesignerVerb.cs
- RepeaterItemEventArgs.cs
- LicenseException.cs
- CharConverter.cs
- RsaSecurityToken.cs
- SourceFileInfo.cs
- Int64Storage.cs
- DocumentGridPage.cs
- NativeMethods.cs
- SoapFault.cs
- TempFiles.cs
- GridToolTip.cs
- Decimal.cs
- XmlArrayItemAttributes.cs
- ObjectDataSourceMethodEventArgs.cs
- RichTextBoxAutomationPeer.cs
- SrgsSemanticInterpretationTag.cs
- DiagnosticsConfigurationHandler.cs
- VarRemapper.cs
- GeometryConverter.cs
- EnumType.cs
- ProjectionPruner.cs
- ColumnMapProcessor.cs
- CodeDirectionExpression.cs
- ErrorStyle.cs
- SplitterEvent.cs
- SiteMapNode.cs
- PlanCompiler.cs
- ModuleBuilder.cs
- ExpressionBuilder.cs
- FileSystemWatcher.cs
- UpdateEventArgs.cs
- WebPartEditorApplyVerb.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- UserInitiatedNavigationPermission.cs
- ToolConsole.cs
- XmlNodeList.cs
- AddInController.cs
- RoutedEvent.cs
- RadioButtonRenderer.cs
- BufferBuilder.cs
- BindingParameterCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- Tracking.cs
- SqlDataSourceStatusEventArgs.cs
- Parser.cs
- SingleStorage.cs
- ReadWriteSpinLock.cs
- CompositionTarget.cs
- OLEDB_Enum.cs
- BitmapFrame.cs
- RadioButton.cs
- GlobalizationSection.cs
- InputLanguageCollection.cs
- SystemNetworkInterface.cs
- SelectedCellsChangedEventArgs.cs
- UnmanagedMemoryStream.cs
- BufferedGraphics.cs
- DataGridSortCommandEventArgs.cs
- PolicyException.cs
- FixedSOMPage.cs
- CqlLexer.cs
- TemplateGroupCollection.cs
- CodeTypeReferenceCollection.cs
- RelatedPropertyManager.cs
- LicenseManager.cs
- RMEnrollmentPage1.cs
- IBuiltInEvidence.cs
- Debug.cs
- CodeRegionDirective.cs