Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / GroupBoxAutomationPeer.cs / 1305600 / 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
- FormatterConverter.cs
- DesignerWebPartChrome.cs
- ErrorTableItemStyle.cs
- CodeDOMUtility.cs
- DecoratedNameAttribute.cs
- ExpressionParser.cs
- UnsafeNativeMethods.cs
- ResourceKey.cs
- SafeFileMappingHandle.cs
- ToolStripRenderEventArgs.cs
- RegistryKey.cs
- SerializationObjectManager.cs
- FormViewInsertedEventArgs.cs
- TranslateTransform.cs
- RawUIStateInputReport.cs
- SymDocumentType.cs
- PropertyPathWorker.cs
- DiagnosticStrings.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- ISessionStateStore.cs
- CompiledIdentityConstraint.cs
- _ConnectOverlappedAsyncResult.cs
- ResponseBodyWriter.cs
- ResourceCollectionInfo.cs
- EntityDataSourceDataSelectionPanel.cs
- SimpleApplicationHost.cs
- XmlTextAttribute.cs
- ChtmlTextWriter.cs
- Stackframe.cs
- DataGridViewCellParsingEventArgs.cs
- UrlMappingsSection.cs
- ColorAnimationBase.cs
- PropertyInfoSet.cs
- IgnoreDataMemberAttribute.cs
- ListViewCancelEventArgs.cs
- ProfessionalColorTable.cs
- SendMailErrorEventArgs.cs
- baseaxisquery.cs
- MappingModelBuildProvider.cs
- PlatformCulture.cs
- SettingsPropertyValue.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewRowPostPaintEventArgs.cs
- PriorityItem.cs
- ValuePatternIdentifiers.cs
- TdsEnums.cs
- TrustManagerMoreInformation.cs
- EntityKey.cs
- TouchPoint.cs
- ToolStripPanelRow.cs
- RadialGradientBrush.cs
- ToolTipService.cs
- SqlCacheDependencyDatabase.cs
- Model3DGroup.cs
- LassoSelectionBehavior.cs
- LinqDataSourceDeleteEventArgs.cs
- ScrollItemPattern.cs
- AutoGeneratedField.cs
- TextTreeInsertElementUndoUnit.cs
- QilXmlReader.cs
- TextEncodedRawTextWriter.cs
- ThemeableAttribute.cs
- CallSiteHelpers.cs
- Int32.cs
- ControlValuePropertyAttribute.cs
- FormsAuthenticationEventArgs.cs
- MetadataSerializer.cs
- DataGridViewTextBoxEditingControl.cs
- StringFreezingAttribute.cs
- SiteMapDataSource.cs
- DataGridViewComboBoxCell.cs
- PropertyEntry.cs
- HttpListener.cs
- PublisherMembershipCondition.cs
- LocalizableResourceBuilder.cs
- LinqDataSourceValidationException.cs
- HttpException.cs
- ProviderConnectionPointCollection.cs
- XsdBuildProvider.cs
- DrawingContextDrawingContextWalker.cs
- DataGridViewButtonColumn.cs
- PeerNameRecordCollection.cs
- PropertyEmitterBase.cs
- XamlStyleSerializer.cs
- ContainerUtilities.cs
- FixedFlowMap.cs
- StylesEditorDialog.cs
- FileInfo.cs
- ISAPIWorkerRequest.cs
- XamlVector3DCollectionSerializer.cs
- BaseParaClient.cs
- ContainerParaClient.cs
- TypeDependencyAttribute.cs
- ApplyTemplatesAction.cs
- PropertySourceInfo.cs
- validationstate.cs
- Exceptions.cs
- FormViewDeleteEventArgs.cs
- TableAdapterManagerGenerator.cs
- ConsoleEntryPoint.cs