Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / GroupBoxAutomationPeer.cs / 1305600 / 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
- AsyncSerializedWorker.cs
- WSDualHttpSecurityMode.cs
- GridToolTip.cs
- CounterCreationData.cs
- RecognitionResult.cs
- TagMapCollection.cs
- _HeaderInfoTable.cs
- ExtensionFile.cs
- QueryParameter.cs
- PointValueSerializer.cs
- ReachPrintTicketSerializer.cs
- OperandQuery.cs
- Form.cs
- CharConverter.cs
- VectorCollectionConverter.cs
- BamlCollectionHolder.cs
- DataGridViewAccessibleObject.cs
- TreeNodeCollection.cs
- DiscoveryProxy.cs
- NoResizeHandleGlyph.cs
- UInt32Storage.cs
- AccessDataSource.cs
- TextEditorSpelling.cs
- WebPartHeaderCloseVerb.cs
- ObjectContext.cs
- HelpKeywordAttribute.cs
- SafeSecurityHandles.cs
- UseAttributeSetsAction.cs
- xml.cs
- BamlResourceContent.cs
- ResourceCategoryAttribute.cs
- SystemParameters.cs
- EntityProxyFactory.cs
- ClientTargetCollection.cs
- ConfigPathUtility.cs
- Color.cs
- DataControlImageButton.cs
- AsyncDataRequest.cs
- TextLineResult.cs
- DataPointer.cs
- TextFormatterHost.cs
- Graphics.cs
- TimersDescriptionAttribute.cs
- ServiceChannelProxy.cs
- XmlIlVisitor.cs
- Trustee.cs
- SqlEnums.cs
- DataBinder.cs
- WindowCollection.cs
- Icon.cs
- TextTreeInsertElementUndoUnit.cs
- BinHexEncoder.cs
- DataSourceCacheDurationConverter.cs
- XPathSelfQuery.cs
- PermissionSetTriple.cs
- NameTable.cs
- XhtmlBasicFormAdapter.cs
- ToolStripItemCollection.cs
- SqlProcedureAttribute.cs
- WorkflowPersistenceService.cs
- PathSegment.cs
- DrawingBrush.cs
- TextEndOfSegment.cs
- DispatcherProcessingDisabled.cs
- XmlSequenceWriter.cs
- ExecutionContext.cs
- XmlEncoding.cs
- CurrentChangingEventManager.cs
- AdornerDecorator.cs
- ParserContext.cs
- WebZone.cs
- SHA1CryptoServiceProvider.cs
- FlowLayoutSettings.cs
- ReaderWriterLock.cs
- MonthChangedEventArgs.cs
- DynamicDataExtensions.cs
- ContentOperations.cs
- PngBitmapEncoder.cs
- HtmlFormWrapper.cs
- TypeUnloadedException.cs
- HtmlControlPersistable.cs
- MsmqTransportSecurityElement.cs
- RIPEMD160.cs
- ColorPalette.cs
- FormatSettings.cs
- PointAnimation.cs
- PageThemeCodeDomTreeGenerator.cs
- MachinePropertyVariants.cs
- OdbcParameter.cs
- ReadOnlyNameValueCollection.cs
- PkcsMisc.cs
- CallbackHandler.cs
- UIElement3DAutomationPeer.cs
- SchemaImporterExtensionsSection.cs
- SslStream.cs
- ResourceExpressionBuilder.cs
- ImageAnimator.cs
- Int32Converter.cs
- FragmentQueryKB.cs
- TimeoutValidationAttribute.cs