Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RuntimeWrappedException.cs
- FactoryGenerator.cs
- SafeNativeMethods.cs
- TypeProvider.cs
- Variable.cs
- FormsIdentity.cs
- UpDownBase.cs
- StringResourceManager.cs
- VoiceInfo.cs
- ByteAnimation.cs
- XamlFigureLengthSerializer.cs
- ProcessDesigner.cs
- UriScheme.cs
- LiteralTextContainerControlBuilder.cs
- DependsOnAttribute.cs
- X509CertificateClaimSet.cs
- CompilerGlobalScopeAttribute.cs
- PageSetupDialog.cs
- ContractInferenceHelper.cs
- Mapping.cs
- SystemIPAddressInformation.cs
- ProviderBase.cs
- StringExpressionSet.cs
- DefaultCommandConverter.cs
- FormsAuthenticationModule.cs
- ExpressionConverter.cs
- FrameworkPropertyMetadata.cs
- OlePropertyStructs.cs
- MSAAEventDispatcher.cs
- x509store.cs
- WizardPanelChangingEventArgs.cs
- DefaultValueMapping.cs
- Parallel.cs
- WebPartEditorApplyVerb.cs
- XmlCodeExporter.cs
- TableCellAutomationPeer.cs
- ColumnHeaderConverter.cs
- ConnectionProviderAttribute.cs
- Lazy.cs
- ScrollEvent.cs
- WebConfigurationHostFileChange.cs
- Thumb.cs
- ClickablePoint.cs
- ColorAnimationUsingKeyFrames.cs
- InvariantComparer.cs
- MobileListItem.cs
- LocalizationParserHooks.cs
- CodeLabeledStatement.cs
- ZipIOBlockManager.cs
- PrintPreviewGraphics.cs
- TableHeaderCell.cs
- DataGridViewCellStyleConverter.cs
- TransformConverter.cs
- TrackingLocation.cs
- DecoderBestFitFallback.cs
- SqlDataSourceFilteringEventArgs.cs
- MetabaseReader.cs
- LabelLiteral.cs
- FormatSettings.cs
- ComponentEvent.cs
- WebControlsSection.cs
- TableLayoutPanelResizeGlyph.cs
- PropertyTabAttribute.cs
- CultureSpecificCharacterBufferRange.cs
- RepeatButton.cs
- RayMeshGeometry3DHitTestResult.cs
- XPathEmptyIterator.cs
- JsonReaderWriterFactory.cs
- WebBrowser.cs
- ExpressionTextBox.xaml.cs
- AtomMaterializerLog.cs
- PopupRootAutomationPeer.cs
- XmlNavigatorStack.cs
- StylusPointPropertyInfo.cs
- DocumentViewerAutomationPeer.cs
- MethodAccessException.cs
- SingleQueryOperator.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TextBoxLine.cs
- CardSpaceSelector.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BindingMAnagerBase.cs
- HtmlInputRadioButton.cs
- XmlNodeChangedEventArgs.cs
- CultureTableRecord.cs
- AssemblyAttributes.cs
- MatrixTransform3D.cs
- FontUnit.cs
- DateTimeFormatInfo.cs
- XomlCompilerResults.cs
- Root.cs
- DbConnectionPoolCounters.cs
- PowerStatus.cs
- StateMachine.cs
- securestring.cs
- SectionUpdates.cs
- Vector3DConverter.cs
- TcpTransportElement.cs
- QilDataSource.cs
- BinaryParser.cs