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 / 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
- XpsResourceDictionary.cs
- ByteFacetDescriptionElement.cs
- CategoryAttribute.cs
- HighlightComponent.cs
- DelayedRegex.cs
- TemplateXamlParser.cs
- DataConnectionHelper.cs
- DataRow.cs
- RequestCachePolicy.cs
- ActiveXHelper.cs
- DateTimeConverter2.cs
- DataKey.cs
- ErrorFormatter.cs
- ReadonlyMessageFilter.cs
- BooleanKeyFrameCollection.cs
- RegexCapture.cs
- MethodAccessException.cs
- ValidatingReaderNodeData.cs
- XPathItem.cs
- WinFormsComponentEditor.cs
- PageStatePersister.cs
- CompoundFileIOPermission.cs
- CacheDependency.cs
- HtmlFormAdapter.cs
- EmbeddedMailObjectCollectionEditor.cs
- ListenerServiceInstallComponent.cs
- IncrementalHitTester.cs
- InstanceView.cs
- XmlArrayItemAttributes.cs
- QilGenerator.cs
- oledbmetadatacolumnnames.cs
- ClrPerspective.cs
- PeerCollaborationPermission.cs
- OracleDataReader.cs
- Error.cs
- ContentType.cs
- MimeTypeMapper.cs
- Visitors.cs
- TransformerInfoCollection.cs
- ColumnWidthChangedEvent.cs
- LingerOption.cs
- Message.cs
- SplashScreen.cs
- GeneratedView.cs
- WorkflowInstance.cs
- DynamicRendererThreadManager.cs
- HttpProcessUtility.cs
- ImageDrawing.cs
- UriSection.cs
- Literal.cs
- BindingParameterCollection.cs
- FixUp.cs
- ObjectTag.cs
- DataRelationPropertyDescriptor.cs
- Funcletizer.cs
- RijndaelManaged.cs
- PartBasedPackageProperties.cs
- ExpressionEditorSheet.cs
- ToolboxItem.cs
- PerformanceCounterLib.cs
- ComplexPropertyEntry.cs
- SessionSwitchEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- EndPoint.cs
- DeclarationUpdate.cs
- LayoutEngine.cs
- TransformerTypeCollection.cs
- BaseDataList.cs
- ColorConverter.cs
- PermissionAttributes.cs
- DesignerView.xaml.cs
- IpcChannel.cs
- SiteMapNodeItem.cs
- MsmqQueue.cs
- Propagator.cs
- ValidatingPropertiesEventArgs.cs
- ErrorWebPart.cs
- ByteAnimation.cs
- ExpressionVisitor.cs
- PaperSize.cs
- TreeNodeEventArgs.cs
- DetailsViewCommandEventArgs.cs
- CheckBoxStandardAdapter.cs
- CompositeFontParser.cs
- LinkClickEvent.cs
- FixedSOMLineRanges.cs
- MouseActionValueSerializer.cs
- StateManagedCollection.cs
- PowerModeChangedEventArgs.cs
- MdiWindowListStrip.cs
- RectangleF.cs
- OleDbCommand.cs
- StackSpiller.Bindings.cs
- ScrollItemProviderWrapper.cs
- Form.cs
- ResourceManagerWrapper.cs
- CryptoApi.cs
- precedingsibling.cs
- RemoveStoryboard.cs
- SQLConvert.cs