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
- ISCIIEncoding.cs
- BeginEvent.cs
- MimeTypePropertyAttribute.cs
- TabletCollection.cs
- DbProviderFactoriesConfigurationHandler.cs
- WorkflowOwnershipException.cs
- BamlTreeNode.cs
- sqlpipe.cs
- EventListener.cs
- BufferAllocator.cs
- HostedBindingBehavior.cs
- SelectedDatesCollection.cs
- XPathChildIterator.cs
- CssStyleCollection.cs
- SchemaCollectionPreprocessor.cs
- StringTraceRecord.cs
- DataGridViewControlCollection.cs
- EdmRelationshipRoleAttribute.cs
- ExpressionPrefixAttribute.cs
- LinkLabelLinkClickedEvent.cs
- ObjectList.cs
- URLAttribute.cs
- PresentationSource.cs
- ObjectDataSourceSelectingEventArgs.cs
- ButtonFieldBase.cs
- DPCustomTypeDescriptor.cs
- SafeLocalMemHandle.cs
- InputLanguageManager.cs
- DbBuffer.cs
- XpsFontSerializationService.cs
- UInt64.cs
- DataGridTable.cs
- ResourceReader.cs
- XmlWhitespace.cs
- XmlDataDocument.cs
- CurrentChangingEventManager.cs
- IList.cs
- PermissionSetTriple.cs
- SoapSchemaImporter.cs
- BaseDataListActionList.cs
- BamlRecords.cs
- MissingMethodException.cs
- IntegerValidatorAttribute.cs
- ProviderBase.cs
- SymbolUsageManager.cs
- ItemsPanelTemplate.cs
- OrderedDictionary.cs
- OracleString.cs
- WindowsListViewItem.cs
- ByteStreamGeometryContext.cs
- IndentedWriter.cs
- XmlWriter.cs
- XPathExpr.cs
- XmlSchemaInferenceException.cs
- SecUtil.cs
- CollectionViewGroup.cs
- DesignerActionService.cs
- ClientRoleProvider.cs
- PeerEndPoint.cs
- TypeExtension.cs
- WmlImageAdapter.cs
- ToolboxItem.cs
- SubMenuStyleCollection.cs
- FloaterBaseParaClient.cs
- ActiveXHelper.cs
- SectionRecord.cs
- EmptyEnumerator.cs
- SqlTypesSchemaImporter.cs
- BinHexDecoder.cs
- LOSFormatter.cs
- RelatedImageListAttribute.cs
- EventMappingSettingsCollection.cs
- Formatter.cs
- ConfigXmlWhitespace.cs
- CqlErrorHelper.cs
- Interop.cs
- ReferenceConverter.cs
- XmlBoundElement.cs
- SystemIPv4InterfaceProperties.cs
- PartBasedPackageProperties.cs
- DataServiceHost.cs
- SafeMILHandleMemoryPressure.cs
- WebServiceTypeData.cs
- UntypedNullExpression.cs
- ZipIOCentralDirectoryBlock.cs
- GacUtil.cs
- RegisteredHiddenField.cs
- FontNameConverter.cs
- XmlSchemaGroup.cs
- TreeNodeSelectionProcessor.cs
- FormsAuthentication.cs
- InstanceDataCollection.cs
- ViewKeyConstraint.cs
- GridViewCancelEditEventArgs.cs
- TriggerCollection.cs
- Point3DConverter.cs
- StackBuilderSink.cs
- ListViewDeletedEventArgs.cs
- JournalNavigationScope.cs
- SafeLocalMemHandle.cs