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
- LogicalExpr.cs
- Label.cs
- SafeSecurityHelper.cs
- ItemCollection.cs
- CustomAssemblyResolver.cs
- CharConverter.cs
- TextTreePropertyUndoUnit.cs
- ProgressBar.cs
- DbSetClause.cs
- XmlQueryStaticData.cs
- BaseHashHelper.cs
- ToolStripProgressBar.cs
- FixUpCollection.cs
- RangeContentEnumerator.cs
- COM2FontConverter.cs
- PropertyKey.cs
- PartialClassGenerationTask.cs
- TargetPerspective.cs
- ObjectSet.cs
- TextEditorMouse.cs
- DeferredSelectedIndexReference.cs
- ClientFormsAuthenticationCredentials.cs
- LinkedResource.cs
- SqlDataRecord.cs
- SingleStorage.cs
- State.cs
- XmlReaderSettings.cs
- XmlRootAttribute.cs
- JoinQueryOperator.cs
- ManagementObjectCollection.cs
- CrossSiteScriptingValidation.cs
- WizardPanel.cs
- EventLogPermissionEntry.cs
- TCPClient.cs
- BindStream.cs
- Operators.cs
- TreeViewAutomationPeer.cs
- DiagnosticStrings.cs
- Grid.cs
- DecoderReplacementFallback.cs
- FirewallWrapper.cs
- ModelMemberCollection.cs
- ManagementOptions.cs
- VirtualPathProvider.cs
- QueryReaderSettings.cs
- SecurityTokenException.cs
- EngineSite.cs
- StylusSystemGestureEventArgs.cs
- UInt32Converter.cs
- DbConnectionOptions.cs
- PermissionAttributes.cs
- XmlObjectSerializerReadContext.cs
- ItemContainerGenerator.cs
- CompilerWrapper.cs
- Activation.cs
- EllipseGeometry.cs
- HtmlSelectionListAdapter.cs
- ToolTip.cs
- DbResourceAllocator.cs
- StringConverter.cs
- TypeSemantics.cs
- ActivationWorker.cs
- ToolConsole.cs
- BlockUIContainer.cs
- CorrelationManager.cs
- ListViewDesigner.cs
- WriteableBitmap.cs
- InputBuffer.cs
- Repeater.cs
- XmlSchemaNotation.cs
- XmlStreamStore.cs
- DataGridComboBoxColumn.cs
- SessionStateSection.cs
- BinaryFormatterWriter.cs
- LinqDataSource.cs
- NavigationPropertySingletonExpression.cs
- CancelEventArgs.cs
- SqlDataAdapter.cs
- CTreeGenerator.cs
- UniqueEventHelper.cs
- ValidatingReaderNodeData.cs
- CaseCqlBlock.cs
- EllipseGeometry.cs
- DragCompletedEventArgs.cs
- HtmlControl.cs
- BigInt.cs
- DataGridViewSortCompareEventArgs.cs
- SizeF.cs
- WindowPattern.cs
- EventSetter.cs
- WebSysDescriptionAttribute.cs
- PkcsMisc.cs
- CodeIdentifier.cs
- DataColumnMappingCollection.cs
- COM2EnumConverter.cs
- _NestedSingleAsyncResult.cs
- SoapEnumAttribute.cs
- Configuration.cs
- DataKey.cs
- StylusPlugin.cs