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
- MobileTextWriter.cs
- ConfigurationValue.cs
- StdValidatorsAndConverters.cs
- Registry.cs
- PropertyMetadata.cs
- CursorConverter.cs
- SqlReorderer.cs
- DataControlFieldHeaderCell.cs
- SymLanguageVendor.cs
- HttpCapabilitiesEvaluator.cs
- BindingWorker.cs
- Rijndael.cs
- DiagnosticSection.cs
- ToolStripArrowRenderEventArgs.cs
- DirtyTextRange.cs
- ReferentialConstraint.cs
- PhysicalAddress.cs
- WebServiceParameterData.cs
- RangeBaseAutomationPeer.cs
- Composition.cs
- InternalConfigSettingsFactory.cs
- MethodCallConverter.cs
- DesignerCommandAdapter.cs
- ReadOnlyDataSource.cs
- XmlBinaryReader.cs
- ObjectCache.cs
- CachedTypeface.cs
- Choices.cs
- HttpPostedFile.cs
- ContainerAction.cs
- SqlWebEventProvider.cs
- Utility.cs
- EventlogProvider.cs
- GeometryGroup.cs
- XmlSchemaExternal.cs
- Vector3dCollection.cs
- ToolStripPanelRow.cs
- BaseDataListDesigner.cs
- ToolBarButtonDesigner.cs
- LoginStatusDesigner.cs
- DateRangeEvent.cs
- ClientConfigPaths.cs
- FieldAccessException.cs
- QuaternionIndependentAnimationStorage.cs
- Range.cs
- IImplicitResourceProvider.cs
- _NegotiateClient.cs
- ServiceDescriptionSerializer.cs
- ToolStripPanelSelectionBehavior.cs
- FacetValueContainer.cs
- RefreshPropertiesAttribute.cs
- AsyncPostBackTrigger.cs
- SQLInt32Storage.cs
- CellQuery.cs
- UriTemplateTrieLocation.cs
- _AuthenticationState.cs
- StreamReader.cs
- EdmMember.cs
- TraversalRequest.cs
- GraphicsContainer.cs
- SecurityTokenTypes.cs
- ColorContextHelper.cs
- HotSpotCollection.cs
- TrackPointCollection.cs
- CatalogPartCollection.cs
- DataGridViewControlCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BitmapImage.cs
- XmlReturnReader.cs
- SecurityKeyType.cs
- ContentPresenter.cs
- FamilyMap.cs
- _AcceptOverlappedAsyncResult.cs
- DateTimeConverter.cs
- ProxyWebPart.cs
- WebErrorHandler.cs
- HandlerWithFactory.cs
- GroupByExpressionRewriter.cs
- arc.cs
- MailWebEventProvider.cs
- DocumentProperties.cs
- FullTextLine.cs
- Content.cs
- WmlValidatorAdapter.cs
- TransformValueSerializer.cs
- DataGridViewUtilities.cs
- CatalogZoneDesigner.cs
- FileReader.cs
- RepeatBehaviorConverter.cs
- DBAsyncResult.cs
- DetailsViewDeleteEventArgs.cs
- OutputCacheProviderCollection.cs
- CFStream.cs
- ImageSource.cs
- DataDesignUtil.cs
- ValidationError.cs
- WebEvents.cs
- Label.cs
- Geometry.cs
- ContentPlaceHolder.cs