Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ResourceDisplayNameAttribute.cs
- SimpleTableProvider.cs
- EventSinkActivityDesigner.cs
- ViewEventArgs.cs
- SchemaDeclBase.cs
- PropertyValue.cs
- EntityModelBuildProvider.cs
- ObjectNotFoundException.cs
- Selector.cs
- AppDomainFactory.cs
- CurrentChangingEventManager.cs
- MyContact.cs
- OracleCommandBuilder.cs
- IntMinMaxAggregationOperator.cs
- DataSourceControl.cs
- PerspectiveCamera.cs
- ColumnHeader.cs
- AppDomainUnloadedException.cs
- Subtree.cs
- SafeViewOfFileHandle.cs
- WorkflowViewElement.cs
- URI.cs
- RowType.cs
- AppModelKnownContentFactory.cs
- ContentHostHelper.cs
- ThicknessKeyFrameCollection.cs
- ChannelFactoryBase.cs
- StringUtil.cs
- WriterOutput.cs
- TreeIterators.cs
- HtmlCommandAdapter.cs
- CompilationUnit.cs
- JsonFormatReaderGenerator.cs
- XmlAttributeOverrides.cs
- ConfigXmlElement.cs
- XmlExpressionDumper.cs
- Byte.cs
- Annotation.cs
- TaskFormBase.cs
- ControlLocalizer.cs
- PrivilegeNotHeldException.cs
- Variant.cs
- SelectionProcessor.cs
- SafeCertificateStore.cs
- VectorCollectionConverter.cs
- configsystem.cs
- Assert.cs
- StoreAnnotationsMap.cs
- PersistChildrenAttribute.cs
- ConfigXmlElement.cs
- OAVariantLib.cs
- HeaderCollection.cs
- TypeDelegator.cs
- SchemaCollectionPreprocessor.cs
- CacheSection.cs
- ItemChangedEventArgs.cs
- ExceptionUtility.cs
- BaseInfoTable.cs
- SettingsPropertyValue.cs
- XmlTextReader.cs
- EndpointFilterProvider.cs
- Path.cs
- FontCacheLogic.cs
- SimpleLine.cs
- OverlappedAsyncResult.cs
- GraphicsContainer.cs
- NumericUpDown.cs
- SchemaImporterExtension.cs
- ErrorWebPart.cs
- RegexRunnerFactory.cs
- BoolLiteral.cs
- SendingRequestEventArgs.cs
- ResourceExpressionBuilder.cs
- GCHandleCookieTable.cs
- GeometryCombineModeValidation.cs
- HtmlElement.cs
- CultureInfo.cs
- PolicyException.cs
- GetRecipientRequest.cs
- DecimalKeyFrameCollection.cs
- XhtmlBasicFormAdapter.cs
- IISUnsafeMethods.cs
- _RequestCacheProtocol.cs
- DataGridLength.cs
- LexicalChunk.cs
- SymbolType.cs
- EventPrivateKey.cs
- XmlProcessingInstruction.cs
- QueryHandler.cs
- WebPartConnectionsCancelVerb.cs
- OperationAbortedException.cs
- ProviderUtil.cs
- safex509handles.cs
- IndentedTextWriter.cs
- Missing.cs
- HGlobalSafeHandle.cs
- DataObject.cs
- _IPv4Address.cs
- FormsAuthenticationEventArgs.cs
- smtppermission.cs