Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Controls / GroupBox.cs / 1 / 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
- autovalidator.cs
- ToolStripDropTargetManager.cs
- ValidationPropertyAttribute.cs
- WebHttpSecurityElement.cs
- ReadOnlyObservableCollection.cs
- Floater.cs
- WindowsComboBox.cs
- DataGridViewMethods.cs
- SAPIEngineTypes.cs
- IRCollection.cs
- ConfigurationElement.cs
- DesignTimeHTMLTextWriter.cs
- AncestorChangedEventArgs.cs
- BitmapEffectrendercontext.cs
- CharacterString.cs
- codemethodreferenceexpression.cs
- MappingModelBuildProvider.cs
- ProcessHostConfigUtils.cs
- Tablet.cs
- ApplicationServiceHelper.cs
- DataSourceXmlSerializationAttribute.cs
- DataGridViewColumnHeaderCell.cs
- MsmqVerifier.cs
- SessionEndingEventArgs.cs
- FormattedTextSymbols.cs
- PrintEvent.cs
- GradientBrush.cs
- entitydatasourceentitysetnameconverter.cs
- translator.cs
- ServiceBuildProvider.cs
- TabControlCancelEvent.cs
- CodeAccessSecurityEngine.cs
- CodeEntryPointMethod.cs
- FixedPosition.cs
- ServiceModelActivationSectionGroup.cs
- EventToken.cs
- StateMachineExecutionState.cs
- ProfileGroupSettings.cs
- TheQuery.cs
- XhtmlBasicTextBoxAdapter.cs
- SerializationUtility.cs
- PartialClassGenerationTask.cs
- BrushConverter.cs
- ServiceOperationInfoTypeConverter.cs
- DiscardableAttribute.cs
- MaskDescriptors.cs
- UdpMessageProperty.cs
- SqlDesignerDataSourceView.cs
- XslUrlEditor.cs
- DbConnectionHelper.cs
- SQLInt64Storage.cs
- PrintDialog.cs
- DataControlImageButton.cs
- Size3DValueSerializer.cs
- SelectionRange.cs
- NameValueCollection.cs
- OracleConnection.cs
- CollectionMarkupSerializer.cs
- OrderedDictionaryStateHelper.cs
- LayoutSettings.cs
- StrokeIntersection.cs
- TableChangeProcessor.cs
- ExcCanonicalXml.cs
- HtmlInputControl.cs
- ParagraphVisual.cs
- RequestQueryProcessor.cs
- ECDsa.cs
- SecUtil.cs
- Vector.cs
- StringAnimationUsingKeyFrames.cs
- DataContractSerializerServiceBehavior.cs
- MimeMultiPart.cs
- SecurityUniqueId.cs
- ValidationErrorCollection.cs
- XamlTemplateSerializer.cs
- TextElementCollectionHelper.cs
- UInt32Converter.cs
- XmlReflectionMember.cs
- CatchBlock.cs
- DetailsViewRowCollection.cs
- XPathNavigator.cs
- InternalsVisibleToAttribute.cs
- BitStream.cs
- TableLayoutPanelCodeDomSerializer.cs
- SplineKeyFrames.cs
- PathFigureCollection.cs
- ReflectionServiceProvider.cs
- TransformerTypeCollection.cs
- NativeRecognizer.cs
- StatusStrip.cs
- Int64Animation.cs
- TextTabProperties.cs
- UrlPropertyAttribute.cs
- LineBreakRecord.cs
- TimerExtension.cs
- base64Transforms.cs
- DateTimePicker.cs
- DataGridViewRowConverter.cs
- BmpBitmapDecoder.cs
- Authorization.cs