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
- XhtmlBasicLabelAdapter.cs
- Win32.cs
- TdsParser.cs
- ASCIIEncoding.cs
- formatter.cs
- BitmapEffectGeneralTransform.cs
- DataFieldEditor.cs
- MethodImplAttribute.cs
- SuppressMergeCheckAttribute.cs
- EventSourceCreationData.cs
- WpfXamlMember.cs
- BlockingCollection.cs
- AspProxy.cs
- Activator.cs
- XmlQueryOutput.cs
- DoWhile.cs
- InputLanguage.cs
- RichTextBoxAutomationPeer.cs
- XamlTypeMapper.cs
- ScriptReferenceEventArgs.cs
- SaveRecipientRequest.cs
- PropagatorResult.cs
- MenuItem.cs
- ConfigurationLocationCollection.cs
- WsdlHelpGeneratorElement.cs
- GroupJoinQueryOperator.cs
- PointHitTestParameters.cs
- AVElementHelper.cs
- ClientTarget.cs
- SecurityProtocolFactory.cs
- InvalidCommandTreeException.cs
- TreeChangeInfo.cs
- CommandLibraryHelper.cs
- AutomationElement.cs
- CompiledQueryCacheEntry.cs
- CheckedPointers.cs
- PKCS1MaskGenerationMethod.cs
- GridItemProviderWrapper.cs
- EdmFunctionAttribute.cs
- SoundPlayer.cs
- StylusPointPropertyUnit.cs
- BaseProcessor.cs
- SectionUpdates.cs
- ReaderWriterLock.cs
- WindowsFormsLinkLabel.cs
- GenericQueueSurrogate.cs
- BitmapSourceSafeMILHandle.cs
- SpeechUI.cs
- ReadOnlyDictionary.cs
- DataMemberFieldEditor.cs
- MatcherBuilder.cs
- XPathSelfQuery.cs
- TimeSpanMinutesConverter.cs
- SoapTypeAttribute.cs
- Solver.cs
- RuleDefinitions.cs
- WorkerRequest.cs
- QilDataSource.cs
- SqlProviderUtilities.cs
- CreatingCookieEventArgs.cs
- COM2Properties.cs
- LabelLiteral.cs
- ItemCheckEvent.cs
- ByeOperationAsyncResult.cs
- RandomDelayQueuedSendsAsyncResult.cs
- ConnectionsZone.cs
- BindingListCollectionView.cs
- ReachPrintTicketSerializer.cs
- Int64.cs
- UInt16.cs
- ADConnectionHelper.cs
- ScriptControlDescriptor.cs
- HtmlInputImage.cs
- VectorKeyFrameCollection.cs
- HttpServerVarsCollection.cs
- IsolatedStoragePermission.cs
- Calendar.cs
- UnicodeEncoding.cs
- RowToParametersTransformer.cs
- UnauthorizedAccessException.cs
- RectAnimationUsingKeyFrames.cs
- DesignTimeHTMLTextWriter.cs
- ConstrainedGroup.cs
- EndpointAddress10.cs
- HybridWebProxyFinder.cs
- Win32.cs
- _SSPIWrapper.cs
- PageRanges.cs
- SafeBitVector32.cs
- CodeDelegateCreateExpression.cs
- _ContextAwareResult.cs
- RuleInfoComparer.cs
- TcpClientSocketManager.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- InputLangChangeEvent.cs
- XmlDesigner.cs
- Calendar.cs
- SafeRegistryKey.cs
- Enlistment.cs
- InstanceLockException.cs