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
- QueryableFilterRepeater.cs
- ScriptControlDescriptor.cs
- ModuleElement.cs
- CryptoApi.cs
- ToolBar.cs
- ColorConverter.cs
- EnumConverter.cs
- MemberAssignment.cs
- DateTimeFormatInfoScanner.cs
- ButtonColumn.cs
- StringUtil.cs
- MachineKey.cs
- MetadataCollection.cs
- HttpCookie.cs
- ComponentResourceKey.cs
- ImageSource.cs
- SqlConnectionString.cs
- Equal.cs
- ComboBox.cs
- VisualBasicSettingsHandler.cs
- StringCollection.cs
- UniqueIdentifierService.cs
- SourceElementsCollection.cs
- ConversionHelper.cs
- DbCommandDefinition.cs
- UidManager.cs
- TraceRecord.cs
- MasterPageCodeDomTreeGenerator.cs
- CodeEventReferenceExpression.cs
- TextViewSelectionProcessor.cs
- HttpClientCredentialType.cs
- SettingsAttributeDictionary.cs
- XmlnsCache.cs
- DrawListViewItemEventArgs.cs
- NullableDecimalSumAggregationOperator.cs
- DynamicPropertyReader.cs
- PassportIdentity.cs
- WizardSideBarListControlItem.cs
- PropertyGridCommands.cs
- DocumentPage.cs
- AttributeQuery.cs
- MonthCalendar.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- StringAnimationUsingKeyFrames.cs
- FixedSOMPage.cs
- SQLInt16Storage.cs
- ColorIndependentAnimationStorage.cs
- ServiceMemoryGates.cs
- ToolStripAdornerWindowService.cs
- XsdBuildProvider.cs
- RoleManagerSection.cs
- DictionaryContent.cs
- EntityTransaction.cs
- DateTimeUtil.cs
- ListViewItem.cs
- XmlConvert.cs
- HttpServerProtocol.cs
- MouseCaptureWithinProperty.cs
- ItemsControlAutomationPeer.cs
- TypeDescriptionProviderAttribute.cs
- WindowsPrincipal.cs
- XmlArrayAttribute.cs
- TokenCreationParameter.cs
- GraphicsContainer.cs
- Button.cs
- DataGridViewRowConverter.cs
- HwndTarget.cs
- StaticExtensionConverter.cs
- EntityDataSourceMemberPath.cs
- SortQuery.cs
- AutomationEventArgs.cs
- EncodedStreamFactory.cs
- CommonDialog.cs
- Constraint.cs
- DBSchemaRow.cs
- OutputCacheSettingsSection.cs
- SchemaAttDef.cs
- ConcurrentBag.cs
- LiteralTextContainerControlBuilder.cs
- TextChangedEventArgs.cs
- TextLine.cs
- Debug.cs
- AddressingProperty.cs
- XmlIncludeAttribute.cs
- DPTypeDescriptorContext.cs
- IPipelineRuntime.cs
- GACMembershipCondition.cs
- XmlWrappingReader.cs
- MemberExpression.cs
- SmiContextFactory.cs
- dataprotectionpermission.cs
- OdbcStatementHandle.cs
- TabItemAutomationPeer.cs
- ConstraintEnumerator.cs
- ConfigurationSectionGroup.cs
- WebScriptEnablingElement.cs
- _IPv6Address.cs
- CompiledXpathExpr.cs
- DiscriminatorMap.cs
- TableParaClient.cs