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
- TextRange.cs
- XPathItem.cs
- WpfWebRequestHelper.cs
- ObjectAnimationUsingKeyFrames.cs
- GridViewUpdateEventArgs.cs
- LinkedResource.cs
- RoleManagerModule.cs
- GridSplitter.cs
- Membership.cs
- MouseActionValueSerializer.cs
- ClrPerspective.cs
- ICspAsymmetricAlgorithm.cs
- WindowsBrush.cs
- GB18030Encoding.cs
- Compiler.cs
- WebPartDisplayMode.cs
- MemberInitExpression.cs
- PolyQuadraticBezierSegment.cs
- ExpressionBinding.cs
- RadialGradientBrush.cs
- RandomNumberGenerator.cs
- Column.cs
- HitTestParameters.cs
- RowsCopiedEventArgs.cs
- EdmPropertyAttribute.cs
- graph.cs
- WebPartVerbsEventArgs.cs
- DesignColumnCollection.cs
- SelectionRange.cs
- GiveFeedbackEvent.cs
- WebRequestModuleElementCollection.cs
- XmlNodeChangedEventManager.cs
- AbstractSvcMapFileLoader.cs
- Image.cs
- WebZone.cs
- WebDisplayNameAttribute.cs
- InputLangChangeRequestEvent.cs
- SelectionHighlightInfo.cs
- XamlBuildProvider.cs
- ExpressionLexer.cs
- HyperLinkColumn.cs
- BindingCompleteEventArgs.cs
- RelOps.cs
- XmlAnyElementAttribute.cs
- ConnectionOrientedTransportElement.cs
- SudsParser.cs
- TextModifierScope.cs
- CalculatedColumn.cs
- ProcessInfo.cs
- TraversalRequest.cs
- BadImageFormatException.cs
- Switch.cs
- SemanticResolver.cs
- TextLineResult.cs
- DataDocumentXPathNavigator.cs
- IDispatchConstantAttribute.cs
- BooleanAnimationBase.cs
- HashMembershipCondition.cs
- CharacterBufferReference.cs
- _LocalDataStoreMgr.cs
- SystemIPInterfaceStatistics.cs
- Span.cs
- MemoryStream.cs
- InputLangChangeRequestEvent.cs
- Shape.cs
- SessionParameter.cs
- FaultDesigner.cs
- DataTableTypeConverter.cs
- GroupBoxRenderer.cs
- DataServiceHost.cs
- HttpVersion.cs
- FormViewModeEventArgs.cs
- TagMapCollection.cs
- FixedSOMTableCell.cs
- errorpatternmatcher.cs
- StoragePropertyMapping.cs
- mongolianshape.cs
- ExecutionContext.cs
- KeyedHashAlgorithm.cs
- PipeSecurity.cs
- HttpListenerRequestTraceRecord.cs
- ValidationSummary.cs
- Oid.cs
- Scene3D.cs
- ComponentDispatcher.cs
- UdpAnnouncementEndpoint.cs
- DataControlLinkButton.cs
- FastPropertyAccessor.cs
- RecipientInfo.cs
- EnumConverter.cs
- ElementNotAvailableException.cs
- XamlClipboardData.cs
- TrueReadOnlyCollection.cs
- Binding.cs
- ADMembershipUser.cs
- ImportContext.cs
- NativeConfigurationLoader.cs
- TemplateBindingExtensionConverter.cs
- EntityObject.cs
- NavigationWindow.cs