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
- PromptBuilder.cs
- BlockUIContainer.cs
- HttpPostProtocolReflector.cs
- NavigateEvent.cs
- ListBoxItemAutomationPeer.cs
- ParameterCollection.cs
- StatusBarItemAutomationPeer.cs
- SamlAssertionKeyIdentifierClause.cs
- MdImport.cs
- Freezable.cs
- WebPartDeleteVerb.cs
- BitStack.cs
- InstalledVoice.cs
- sqlcontext.cs
- SafeLocalAllocation.cs
- UndirectedGraph.cs
- XmlSchemas.cs
- CustomTrackingRecord.cs
- FrugalList.cs
- DecimalAnimationUsingKeyFrames.cs
- ProfilePropertyMetadata.cs
- TreeView.cs
- DeploymentSectionCache.cs
- CacheMode.cs
- SubpageParaClient.cs
- WindowsClientCredential.cs
- EmptyEnumerator.cs
- DataKeyArray.cs
- RadioButtonList.cs
- ButtonBaseAdapter.cs
- HostExecutionContextManager.cs
- ToolStripOverflow.cs
- DocumentXmlWriter.cs
- SupportingTokenProviderSpecification.cs
- EventLogEntryCollection.cs
- GetWinFXPath.cs
- MultiView.cs
- TrackingSection.cs
- QuaternionConverter.cs
- ClickablePoint.cs
- CacheChildrenQuery.cs
- XDRSchema.cs
- Or.cs
- NameValueFileSectionHandler.cs
- BaseValidatorDesigner.cs
- SplitterPanelDesigner.cs
- UriWriter.cs
- PersonalizationAdministration.cs
- DtrList.cs
- SizeFConverter.cs
- SplitterCancelEvent.cs
- GiveFeedbackEventArgs.cs
- UInt32Converter.cs
- LocalizedNameDescriptionPair.cs
- WebPartEventArgs.cs
- SwitchLevelAttribute.cs
- GridViewDesigner.cs
- DataGridViewCellMouseEventArgs.cs
- UIPropertyMetadata.cs
- XNodeNavigator.cs
- QilParameter.cs
- securestring.cs
- RTLAwareMessageBox.cs
- translator.cs
- ZipIOFileItemStream.cs
- DockingAttribute.cs
- assertwrapper.cs
- Composition.cs
- DataMisalignedException.cs
- BindingContext.cs
- DynamicMethod.cs
- SafeEventHandle.cs
- SoapExtensionTypeElement.cs
- MeshGeometry3D.cs
- ClusterSafeNativeMethods.cs
- Transform3D.cs
- InvokeProviderWrapper.cs
- AncestorChangedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- StringExpressionSet.cs
- XNodeNavigator.cs
- XmlMembersMapping.cs
- SecurityContext.cs
- TextElementCollection.cs
- RemotingException.cs
- CancelEventArgs.cs
- HttpProfileBase.cs
- DataSetMappper.cs
- SecurityMode.cs
- PackageRelationship.cs
- CultureTable.cs
- WebHostScriptMappingsInstallComponent.cs
- BooleanToVisibilityConverter.cs
- TraceAsyncResult.cs
- IndicFontClient.cs
- InfoCardSchemas.cs
- Vector3DValueSerializer.cs
- MemoryStream.cs
- BaseTemplateBuildProvider.cs
- HwndPanningFeedback.cs