Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Automation / Peers / GroupBoxAutomationPeer.cs / 1 / GroupBoxAutomationPeer.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.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class GroupBoxAutomationPeer : FrameworkElementAutomationPeer { /// public GroupBoxAutomationPeer(GroupBox owner): base(owner) {} /// override protected string GetClassNameCore() { return "GroupBox"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Group; } // Return the base without the AccessKey character /// override protected string GetNameCore() { string result = base.GetNameCore(); if (!string.IsNullOrEmpty(result)) { GroupBox groupBox = (GroupBox)Owner; if (groupBox.Header 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. 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.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class GroupBoxAutomationPeer : FrameworkElementAutomationPeer { /// public GroupBoxAutomationPeer(GroupBox owner): base(owner) {} /// override protected string GetClassNameCore() { return "GroupBox"; } /// override protected AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Group; } // Return the base without the AccessKey character /// override protected string GetNameCore() { string result = base.GetNameCore(); if (!string.IsNullOrEmpty(result)) { GroupBox groupBox = (GroupBox)Owner; if (groupBox.Header 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
- COM2Properties.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ADRoleFactoryConfiguration.cs
- LocatorPartList.cs
- Vector3DIndependentAnimationStorage.cs
- CharacterBuffer.cs
- RegisteredExpandoAttribute.cs
- StringCollection.cs
- PropertyAccessVisitor.cs
- PrintDocument.cs
- ContentElement.cs
- Animatable.cs
- PasswordBoxAutomationPeer.cs
- StrongTypingException.cs
- PropertyGridView.cs
- KeyInfo.cs
- WeakReference.cs
- ObjectStateFormatter.cs
- ContextProperty.cs
- ApplyTemplatesAction.cs
- Tag.cs
- DSASignatureDeformatter.cs
- NodeInfo.cs
- Int32AnimationBase.cs
- TrustLevelCollection.cs
- VersionValidator.cs
- TextModifierScope.cs
- WaitHandle.cs
- ToolStripSettings.cs
- LocalizationParserHooks.cs
- VectorAnimationUsingKeyFrames.cs
- CommonRemoteMemoryBlock.cs
- TdsRecordBufferSetter.cs
- CodeNamespaceImport.cs
- DirectoryInfo.cs
- TemplateContent.cs
- ServiceModelTimeSpanValidator.cs
- BufferAllocator.cs
- AndCondition.cs
- BufferedOutputStream.cs
- ExtendedProperty.cs
- MarkupCompiler.cs
- ChangeConflicts.cs
- PreApplicationStartMethodAttribute.cs
- MatrixKeyFrameCollection.cs
- StringCollectionMarkupSerializer.cs
- DefaultCommandConverter.cs
- IncrementalCompileAnalyzer.cs
- WebPartCancelEventArgs.cs
- NavigatingCancelEventArgs.cs
- BamlWriter.cs
- HelpEvent.cs
- NodeInfo.cs
- NonParentingControl.cs
- XomlCompilerParameters.cs
- DSGeneratorProblem.cs
- EventLogTraceListener.cs
- OutputCacheProviderCollection.cs
- TableItemPattern.cs
- FormatException.cs
- TransportConfigurationTypeElementCollection.cs
- configsystem.cs
- SnapshotChangeTrackingStrategy.cs
- AsyncInvokeContext.cs
- ConfigXmlComment.cs
- ScriptResourceHandler.cs
- XslTransform.cs
- EdmFunctions.cs
- DelayLoadType.cs
- ObjectDataSource.cs
- ConditionBrowserDialog.cs
- ProcessHost.cs
- PtsHost.cs
- FontStyles.cs
- Canvas.cs
- XmlRawWriter.cs
- _HeaderInfo.cs
- PerspectiveCamera.cs
- TaskSchedulerException.cs
- StorageFunctionMapping.cs
- BinaryKeyIdentifierClause.cs
- SchemaElementDecl.cs
- ConstraintConverter.cs
- SqlRowUpdatedEvent.cs
- FileFormatException.cs
- DictionaryBase.cs
- MaskedTextProvider.cs
- AddInControllerImpl.cs
- StylusEventArgs.cs
- QueryOutputWriter.cs
- AxImporter.cs
- EntityClientCacheEntry.cs
- SHA1CryptoServiceProvider.cs
- ExceptionUtil.cs
- CustomBindingElement.cs
- CodePropertyReferenceExpression.cs
- InstanceData.cs
- StatusStrip.cs
- PageThemeBuildProvider.cs
- SystemColorTracker.cs