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
- StorageEntityContainerMapping.cs
- ModelItemCollectionImpl.cs
- OdbcEnvironmentHandle.cs
- XmlCountingReader.cs
- UnknownBitmapDecoder.cs
- EmptyEnumerator.cs
- RelationHandler.cs
- HttpInputStream.cs
- NativeMethods.cs
- TransformGroup.cs
- MarginCollapsingState.cs
- COM2Enum.cs
- DetailsViewRowCollection.cs
- XmlSchemaObjectCollection.cs
- VoiceChangeEventArgs.cs
- SafeHandle.cs
- Rfc2898DeriveBytes.cs
- PersonalizationProviderCollection.cs
- SortedList.cs
- InputMethodStateTypeInfo.cs
- COAUTHIDENTITY.cs
- EntityContainerEntitySetDefiningQuery.cs
- StyleSelector.cs
- AspNetCacheProfileAttribute.cs
- SessionStateSection.cs
- KeyConstraint.cs
- ColumnReorderedEventArgs.cs
- QilDataSource.cs
- TextSegment.cs
- Error.cs
- ProfileSettings.cs
- MemoryPressure.cs
- ServiceContractGenerator.cs
- XmlAutoDetectWriter.cs
- COAUTHIDENTITY.cs
- StylusShape.cs
- DrawListViewColumnHeaderEventArgs.cs
- EDesignUtil.cs
- StringFunctions.cs
- TextTreeUndoUnit.cs
- DefaultConfirmation.cs
- ASCIIEncoding.cs
- Parser.cs
- DetailsViewPagerRow.cs
- XmlnsCompatibleWithAttribute.cs
- HwndSourceParameters.cs
- MatchingStyle.cs
- CaseStatementSlot.cs
- ScriptControlDescriptor.cs
- SqlWebEventProvider.cs
- ConfigurationValidatorBase.cs
- DataGridHelper.cs
- AddInDeploymentState.cs
- TypefaceMap.cs
- HostingEnvironmentException.cs
- LoginDesigner.cs
- ListItemParagraph.cs
- MimeTypeMapper.cs
- MailMessageEventArgs.cs
- TextSpanModifier.cs
- ComboBoxAutomationPeer.cs
- ObjectItemNoOpAssemblyLoader.cs
- LinearKeyFrames.cs
- XsdBuildProvider.cs
- FormsIdentity.cs
- DbModificationClause.cs
- CodeAttachEventStatement.cs
- EncodingConverter.cs
- SupportsEventValidationAttribute.cs
- FeatureAttribute.cs
- LogicalExpressionEditor.cs
- UdpTransportSettingsElement.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DataMember.cs
- DynamicEntity.cs
- TableRow.cs
- MissingManifestResourceException.cs
- KnownAssemblyEntry.cs
- ResourceDictionaryCollection.cs
- EventProviderWriter.cs
- NavigatorOutput.cs
- DocumentReferenceCollection.cs
- MULTI_QI.cs
- PathTooLongException.cs
- XmlDomTextWriter.cs
- SqlInfoMessageEvent.cs
- PropertyEmitterBase.cs
- SpellCheck.cs
- RemoteWebConfigurationHost.cs
- DecoderFallback.cs
- BindingNavigator.cs
- FolderBrowserDialogDesigner.cs
- BamlTreeMap.cs
- Int32Converter.cs
- XmlSchemaComplexContentExtension.cs
- WindowsButton.cs
- FrameworkReadOnlyPropertyMetadata.cs
- _PooledStream.cs
- DTCTransactionManager.cs
- HandlerFactoryCache.cs