Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / GroupBox.cs / 1305600 / GroupBox.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Implementation of the GroupBox Control // //--------------------------------------------------------------------------- using System.Windows.Input; // Access Key support namespace System.Windows.Controls { ////// GroupBox Control class /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public class GroupBox : HeaderedContentControl { #region Constructors static GroupBox() { FocusableProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); IsTabStopProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); DefaultStyleKeyProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(typeof(GroupBox))); EventManager.RegisterClassHandler(typeof(GroupBox), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); } #endregion #region Override methods ////// Creates AutomationPeer ( protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() { return new System.Windows.Automation.Peers.GroupBoxAutomationPeer(this); } ///) /// /// The Access key for this control was invoked. /// protected override void OnAccessKey(AccessKeyEventArgs e) { MoveFocus(new TraversalRequest(FocusNavigationDirection.First)); } private static void OnAccessKeyPressed(object sender, AccessKeyPressedEventArgs e) { if (!e.Handled && e.Scope == null && e.Target == null) { e.Target = sender as GroupBox; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Implementation of the GroupBox Control // //--------------------------------------------------------------------------- using System.Windows.Input; // Access Key support namespace System.Windows.Controls { ////// GroupBox Control class /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public class GroupBox : HeaderedContentControl { #region Constructors static GroupBox() { FocusableProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); IsTabStopProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(false)); DefaultStyleKeyProperty.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(typeof(GroupBox))); EventManager.RegisterClassHandler(typeof(GroupBox), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed)); } #endregion #region Override methods ////// Creates AutomationPeer ( protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() { return new System.Windows.Automation.Peers.GroupBoxAutomationPeer(this); } ///) /// /// The Access key for this control was invoked. /// protected override void OnAccessKey(AccessKeyEventArgs e) { MoveFocus(new TraversalRequest(FocusNavigationDirection.First)); } private static void OnAccessKeyPressed(object sender, AccessKeyPressedEventArgs e) { if (!e.Handled && e.Scope == null && e.Target == null) { e.Target = sender as GroupBox; } } #endregion } } // 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
- ReferenceConverter.cs
- NavigationProperty.cs
- CryptoConfig.cs
- Sql8ConformanceChecker.cs
- Knowncolors.cs
- MenuAdapter.cs
- TrackingSection.cs
- User.cs
- XmlSchemaSimpleContent.cs
- ViewStateModeByIdAttribute.cs
- NonParentingControl.cs
- ContentType.cs
- GPPOINTF.cs
- WebBrowserDocumentCompletedEventHandler.cs
- EtwTrackingParticipant.cs
- XPathSelectionIterator.cs
- SqlConnectionHelper.cs
- SiteMapDataSourceView.cs
- UserPreferenceChangingEventArgs.cs
- ping.cs
- ResourceExpressionBuilder.cs
- odbcmetadatacollectionnames.cs
- ExtendedPropertyCollection.cs
- ProgressBar.cs
- ApplicationBuildProvider.cs
- TypeSystem.cs
- MemberNameValidator.cs
- Compensation.cs
- XamlDesignerSerializationManager.cs
- Conditional.cs
- EntityTemplateUserControl.cs
- ExtendedProtectionPolicyElement.cs
- ClientUtils.cs
- TraceXPathNavigator.cs
- TrustVersion.cs
- SystemColors.cs
- PasswordTextNavigator.cs
- HostingPreferredMapPath.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ControlValuePropertyAttribute.cs
- ServiceOperationInfoTypeConverter.cs
- ProfessionalColorTable.cs
- ManipulationDelta.cs
- XsltArgumentList.cs
- ThrowHelper.cs
- ArgumentFixer.cs
- DataRow.cs
- Calendar.cs
- KeyTimeConverter.cs
- CatalogPartChrome.cs
- PatternMatcher.cs
- PrivateFontCollection.cs
- LogAppendAsyncResult.cs
- DataGridItemAutomationPeer.cs
- FormatVersion.cs
- FlowDocument.cs
- FormsAuthenticationConfiguration.cs
- IApplicationTrustManager.cs
- ReliableSession.cs
- WhiteSpaceTrimStringConverter.cs
- XAMLParseException.cs
- DependencyObjectType.cs
- SettingsPropertyCollection.cs
- WindowsSlider.cs
- XmlBinaryReader.cs
- LookupNode.cs
- ChildChangedEventArgs.cs
- XamlLoadErrorInfo.cs
- CodeArrayCreateExpression.cs
- FtpRequestCacheValidator.cs
- ChineseLunisolarCalendar.cs
- Adorner.cs
- PopOutPanel.cs
- MultiBinding.cs
- AsyncPostBackTrigger.cs
- OperatorExpressions.cs
- DesignerHierarchicalDataSourceView.cs
- If.cs
- AnnotationComponentChooser.cs
- RIPEMD160.cs
- DbParameterCollectionHelper.cs
- HostnameComparisonMode.cs
- translator.cs
- HttpCacheParams.cs
- wgx_exports.cs
- DataChangedEventManager.cs
- ListView.cs
- processwaithandle.cs
- ApplicationServiceHelper.cs
- MatrixTransform3D.cs
- SR.cs
- RawStylusInput.cs
- BaseContextMenu.cs
- RtfControlWordInfo.cs
- InputLanguageCollection.cs
- FileRegion.cs
- ProviderUtil.cs
- PtsCache.cs
- BinHexDecoder.cs
- PageAdapter.cs