Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlNullResolver.cs
- IERequestCache.cs
- StringFreezingAttribute.cs
- QueryException.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- HttpClientCertificate.cs
- HotSpotCollection.cs
- TransportChannelFactory.cs
- SessionPageStateSection.cs
- ProbeMatchesMessage11.cs
- NetworkInformationPermission.cs
- MetadataCache.cs
- RadioButtonDesigner.cs
- HTTPNotFoundHandler.cs
- ClonableStack.cs
- COM2FontConverter.cs
- DbConnectionFactory.cs
- BrowserCapabilitiesCodeGenerator.cs
- VariantWrapper.cs
- OdbcError.cs
- Boolean.cs
- BatchParser.cs
- ItemsControlAutomationPeer.cs
- basemetadatamappingvisitor.cs
- NetTcpBindingCollectionElement.cs
- NumericUpDown.cs
- NameValueCache.cs
- HttpModuleActionCollection.cs
- ContextMenuStrip.cs
- SqlDataAdapter.cs
- SaveFileDialog.cs
- XmlSchemaExporter.cs
- MSAAEventDispatcher.cs
- xml.cs
- CultureTableRecord.cs
- SettingsBindableAttribute.cs
- Substitution.cs
- CodeExpressionRuleDeclaration.cs
- DefaultEvaluationContext.cs
- FixedTextSelectionProcessor.cs
- EdgeModeValidation.cs
- SspiSafeHandles.cs
- SchemaEntity.cs
- InvokeWebServiceDesigner.cs
- CommandConverter.cs
- EventLogPermission.cs
- PeerCustomResolverElement.cs
- SyndicationDeserializer.cs
- URLAttribute.cs
- FlatButtonAppearance.cs
- SelectionItemProviderWrapper.cs
- EncryptedPackage.cs
- CultureData.cs
- StreamResourceInfo.cs
- DbConnectionFactory.cs
- ISFClipboardData.cs
- NotSupportedException.cs
- SerializationException.cs
- InfoCardCryptoHelper.cs
- InheritablePropertyChangeInfo.cs
- IconConverter.cs
- SoapAttributeOverrides.cs
- StringArrayEditor.cs
- DataListItemEventArgs.cs
- IISUnsafeMethods.cs
- GroupLabel.cs
- OpCopier.cs
- UnaryQueryOperator.cs
- X509Utils.cs
- FixedSOMLineCollection.cs
- IxmlLineInfo.cs
- TextEffect.cs
- MobileFormsAuthentication.cs
- EncryptedKey.cs
- CodeGeneratorOptions.cs
- View.cs
- DeclarativeConditionsCollection.cs
- StringValidator.cs
- DataSourceIDConverter.cs
- ControlBindingsCollection.cs
- NameValueConfigurationElement.cs
- XPathDescendantIterator.cs
- OletxTransactionManager.cs
- StylusPointDescription.cs
- ValueTypeFixupInfo.cs
- TypeListConverter.cs
- LambdaCompiler.Logical.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ReplacementText.cs
- DoubleCollectionValueSerializer.cs
- RequestContext.cs
- ProgressBarRenderer.cs
- InfoCardSymmetricAlgorithm.cs
- ModelVisual3D.cs
- SqlDataSourceDesigner.cs
- FormViewRow.cs
- HtmlShimManager.cs
- HtmlHead.cs
- SqlCacheDependencyDatabaseCollection.cs
- String.cs