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
- ItemCheckedEvent.cs
- Listen.cs
- PixelFormat.cs
- BuildManagerHost.cs
- DataTablePropertyDescriptor.cs
- UTF8Encoding.cs
- GridViewRowEventArgs.cs
- DataObjectEventArgs.cs
- WorkflowPageSetupDialog.cs
- CompilerGlobalScopeAttribute.cs
- DynamicValidatorEventArgs.cs
- MutexSecurity.cs
- PersonalizationProviderHelper.cs
- PaintValueEventArgs.cs
- VariableQuery.cs
- AndMessageFilter.cs
- HashSet.cs
- ZipPackage.cs
- XmlAttribute.cs
- OleDbPermission.cs
- ResourceCategoryAttribute.cs
- ParameterModifier.cs
- LocatorBase.cs
- TrayIconDesigner.cs
- WebBrowserEvent.cs
- TopClause.cs
- ObjectReferenceStack.cs
- DataGridSortCommandEventArgs.cs
- TypedTableBaseExtensions.cs
- DiscoveryClientDuplexChannel.cs
- SqlDataSourceQuery.cs
- Misc.cs
- TableProvider.cs
- DependencyPropertyKind.cs
- SessionChannels.cs
- BCryptHashAlgorithm.cs
- TCPClient.cs
- FrugalMap.cs
- GeneralTransform.cs
- CollectionType.cs
- WebExceptionStatus.cs
- OneOfScalarConst.cs
- HttpModule.cs
- _BufferOffsetSize.cs
- AppDomainProtocolHandler.cs
- BamlLocalizer.cs
- SingleResultAttribute.cs
- SrgsItemList.cs
- OLEDB_Enum.cs
- KeyManager.cs
- InnerItemCollectionView.cs
- WMIInterop.cs
- EventProperty.cs
- SecureEnvironment.cs
- EntityException.cs
- OdbcInfoMessageEvent.cs
- WpfGeneratedKnownProperties.cs
- ExcludeFromCodeCoverageAttribute.cs
- NextPreviousPagerField.cs
- shaperfactory.cs
- DataMisalignedException.cs
- EmptyElement.cs
- EntityDataSourceDesigner.cs
- ExtensionElementCollection.cs
- InternalRelationshipCollection.cs
- DtcInterfaces.cs
- FlowLayoutPanel.cs
- RootBrowserWindowProxy.cs
- XmlDeclaration.cs
- CultureSpecificCharacterBufferRange.cs
- FixedBufferAttribute.cs
- WindowsAuthenticationModule.cs
- FileChangesMonitor.cs
- EdmEntityTypeAttribute.cs
- ButtonColumn.cs
- RelationshipManager.cs
- SelectedDatesCollection.cs
- EventLevel.cs
- XmlKeywords.cs
- QueryOutputWriter.cs
- DoubleCollection.cs
- EnumMember.cs
- ModelPropertyImpl.cs
- DeferredSelectedIndexReference.cs
- Control.cs
- UrlPath.cs
- ParallelEnumerableWrapper.cs
- EventLogEntry.cs
- DataGridItemAttachedStorage.cs
- xdrvalidator.cs
- RTLAwareMessageBox.cs
- RegionInfo.cs
- CatalogZoneDesigner.cs
- TableLayoutCellPaintEventArgs.cs
- BezierSegment.cs
- StreamWriter.cs
- ButtonColumn.cs
- ResolveNextArgumentWorkItem.cs
- CodeCommentStatementCollection.cs
- AccessKeyManager.cs