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
- NotImplementedException.cs
- DataServiceKeyAttribute.cs
- Socket.cs
- DefaultHttpHandler.cs
- OLEDB_Util.cs
- SimpleApplicationHost.cs
- SqlBulkCopy.cs
- SqlDependency.cs
- SystemWebExtensionsSectionGroup.cs
- TextServicesManager.cs
- GradientBrush.cs
- CodeBlockBuilder.cs
- TransformerTypeCollection.cs
- UnsafeNativeMethods.cs
- XmlnsDictionary.cs
- Stopwatch.cs
- EmptyStringExpandableObjectConverter.cs
- DATA_BLOB.cs
- ServiceDocument.cs
- BitmapFrame.cs
- StyleSheetRefUrlEditor.cs
- StylusPointProperty.cs
- NameSpaceEvent.cs
- XmlCDATASection.cs
- InplaceBitmapMetadataWriter.cs
- TextRunCache.cs
- SQLBytes.cs
- FixedTextPointer.cs
- ConfigurationSettings.cs
- LineBreak.cs
- formatter.cs
- UIAgentRequest.cs
- ParserStreamGeometryContext.cs
- HttpListenerResponse.cs
- ExtensionElementCollection.cs
- Scheduler.cs
- ViewCellSlot.cs
- ReferencedAssemblyResolver.cs
- QueryStringHandler.cs
- TextRangeSerialization.cs
- FormatConvertedBitmap.cs
- WsdlBuildProvider.cs
- SolidBrush.cs
- XhtmlBasicControlAdapter.cs
- HeaderPanel.cs
- ObjectDataSourceStatusEventArgs.cs
- AddInPipelineAttributes.cs
- AssociationSetMetadata.cs
- HyperLink.cs
- ToolStripAdornerWindowService.cs
- StorageAssociationTypeMapping.cs
- ControlType.cs
- Wizard.cs
- Floater.cs
- CodePageEncoding.cs
- InstancePersistenceCommandException.cs
- XPathQilFactory.cs
- _LoggingObject.cs
- SQLRoleProvider.cs
- xdrvalidator.cs
- DataList.cs
- AutomationPatternInfo.cs
- ProfileBuildProvider.cs
- PaperSource.cs
- WindowsGrip.cs
- CommandBinding.cs
- RegexBoyerMoore.cs
- EditingScope.cs
- BaseCodeDomTreeGenerator.cs
- DispatcherEventArgs.cs
- TogglePatternIdentifiers.cs
- DataControlLinkButton.cs
- DiscoveryDocumentSearchPattern.cs
- StructuralObject.cs
- CodeConstructor.cs
- Ray3DHitTestResult.cs
- SqlUtil.cs
- Tool.cs
- XamlStyleSerializer.cs
- InstanceLockQueryResult.cs
- BaseValidator.cs
- ReferentialConstraintRoleElement.cs
- InputReport.cs
- mediaclock.cs
- ChangePasswordAutoFormat.cs
- Evaluator.cs
- Cursors.cs
- AutomationProperty.cs
- Bezier.cs
- XmlMemberMapping.cs
- ReferencedAssembly.cs
- SerializationFieldInfo.cs
- WindowHelperService.cs
- SqlBulkCopyColumnMappingCollection.cs
- FillBehavior.cs
- XPathDocumentBuilder.cs
- Tile.cs
- DrawingVisual.cs
- ConstraintStruct.cs
- MethodToken.cs