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
- HttpListenerException.cs
- TextElementEnumerator.cs
- EUCJPEncoding.cs
- WebPartDisplayMode.cs
- RowToFieldTransformer.cs
- WasNotInstalledException.cs
- CompilerGlobalScopeAttribute.cs
- LogSwitch.cs
- HttpHeaderCollection.cs
- OraclePermissionAttribute.cs
- IntSumAggregationOperator.cs
- QuotedPrintableStream.cs
- FrameworkElementAutomationPeer.cs
- TemplateBindingExtension.cs
- ColumnCollection.cs
- CompositeControlDesigner.cs
- HttpModulesSection.cs
- ZoomPercentageConverter.cs
- LocalServiceSecuritySettings.cs
- Lazy.cs
- DataGridViewComboBoxColumn.cs
- XmlAttributes.cs
- UidManager.cs
- Random.cs
- SeekableReadStream.cs
- WindowsRichEditRange.cs
- ExplicitDiscriminatorMap.cs
- KeyedHashAlgorithm.cs
- CommandConverter.cs
- SpAudioStreamWrapper.cs
- TextBox.cs
- BitmapImage.cs
- LayoutUtils.cs
- Model3DGroup.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ToolstripProfessionalRenderer.cs
- SHA1Cng.cs
- MimeTypePropertyAttribute.cs
- ShaperBuffers.cs
- Int64AnimationBase.cs
- ProxyWebPart.cs
- cookiecollection.cs
- EventWaitHandle.cs
- ObjectItemCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- TextRangeEditTables.cs
- ObjectReaderCompiler.cs
- HttpServerVarsCollection.cs
- SkipStoryboardToFill.cs
- QilTargetType.cs
- ValidationPropertyAttribute.cs
- DataRecordObjectView.cs
- ProfileGroupSettings.cs
- RotateTransform3D.cs
- DynamicField.cs
- sqlcontext.cs
- XmlBufferedByteStreamReader.cs
- XmlSchemaElement.cs
- ColorTransform.cs
- HttpServerChannel.cs
- SiteMapProvider.cs
- BackgroundFormatInfo.cs
- ContractNamespaceAttribute.cs
- DataKey.cs
- WebHeaderCollection.cs
- VectorAnimationBase.cs
- TextServicesCompartment.cs
- CapabilitiesSection.cs
- ZipIOExtraField.cs
- updateconfighost.cs
- HtmlAnchor.cs
- UICuesEvent.cs
- DynamicDocumentPaginator.cs
- GeometryDrawing.cs
- CounterSetInstance.cs
- WindowsContainer.cs
- ImageInfo.cs
- ContainerTracking.cs
- RC2CryptoServiceProvider.cs
- ConfigurationConverterBase.cs
- DataListDesigner.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CredentialCache.cs
- ThreadAttributes.cs
- RectangleGeometry.cs
- uribuilder.cs
- DataGridColumnHeader.cs
- ExeContext.cs
- SamlSubjectStatement.cs
- HyperLinkColumn.cs
- SubpageParaClient.cs
- WsatConfiguration.cs
- SecurityPermission.cs
- TdsParserStateObject.cs
- UnionCqlBlock.cs
- WebEventCodes.cs
- ControlDesigner.cs
- PolicyLevel.cs
- XmlLinkedNode.cs
- ItemType.cs