Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PublisherMembershipCondition.cs
- BindingOperations.cs
- FileDialogCustomPlace.cs
- UniqueEventHelper.cs
- CFGGrammar.cs
- QilUnary.cs
- SimpleWebHandlerParser.cs
- BitVector32.cs
- UrlPropertyAttribute.cs
- Converter.cs
- EnvironmentPermission.cs
- AlignmentYValidation.cs
- Compress.cs
- CookieProtection.cs
- cryptoapiTransform.cs
- Parallel.cs
- DecimalConstantAttribute.cs
- ScriptReference.cs
- EntityContainerEmitter.cs
- CacheVirtualItemsEvent.cs
- CommonRemoteMemoryBlock.cs
- ListView.cs
- AnchorEditor.cs
- RegistrySecurity.cs
- SimpleApplicationHost.cs
- ToolStripContextMenu.cs
- SelectiveScrollingGrid.cs
- Brush.cs
- GestureRecognizer.cs
- OdbcPermission.cs
- ByeMessage11.cs
- DescendantOverDescendantQuery.cs
- BuildProvidersCompiler.cs
- URLString.cs
- Msec.cs
- ModuleBuilder.cs
- BaseTemplateBuildProvider.cs
- ElementHostAutomationPeer.cs
- Win32Interop.cs
- DefaultBindingPropertyAttribute.cs
- PrintPageEvent.cs
- HttpConfigurationContext.cs
- Automation.cs
- OracleParameter.cs
- WindowsNonControl.cs
- HwndSubclass.cs
- Propagator.cs
- HttpProxyTransportBindingElement.cs
- SuppressIldasmAttribute.cs
- ContextMenuService.cs
- AutomationPeer.cs
- DataList.cs
- TabPage.cs
- PassportAuthenticationEventArgs.cs
- SignedXml.cs
- GeneratedContractType.cs
- SqlExpressionNullability.cs
- SaveFileDialog.cs
- RegexInterpreter.cs
- loginstatus.cs
- RootBrowserWindow.cs
- WinCategoryAttribute.cs
- _ChunkParse.cs
- HttpFileCollection.cs
- ComboBox.cs
- StrongNameIdentityPermission.cs
- PagerSettings.cs
- NamedPipeProcessProtocolHandler.cs
- CounterSetInstanceCounterDataSet.cs
- SaveFileDialog.cs
- VirtualizingPanel.cs
- Menu.cs
- ActiveXHost.cs
- HTMLTagNameToTypeMapper.cs
- ServicesExceptionNotHandledEventArgs.cs
- PanelDesigner.cs
- TreeNodeStyleCollection.cs
- SerializationStore.cs
- PageThemeBuildProvider.cs
- RegistryKey.cs
- Part.cs
- indexingfiltermarshaler.cs
- DataFieldEditor.cs
- QilBinary.cs
- XPathMultyIterator.cs
- RuntimeEnvironment.cs
- BooleanAnimationBase.cs
- RC2CryptoServiceProvider.cs
- MailDefinitionBodyFileNameEditor.cs
- AuthorizationRule.cs
- WorkflowTransactionOptions.cs
- TextSimpleMarkerProperties.cs
- TransformationRules.cs
- KnownIds.cs
- TdsParser.cs
- EntityViewGenerationAttribute.cs
- Config.cs
- GridViewColumnHeader.cs
- QueryInterceptorAttribute.cs
- DynamicDataRouteHandler.cs