Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BaseConfigurationRecord.cs
- storepermission.cs
- ParseElementCollection.cs
- ConstraintManager.cs
- DesignerGenericWebPart.cs
- HitTestFilterBehavior.cs
- _Connection.cs
- formatter.cs
- ThaiBuddhistCalendar.cs
- Math.cs
- ApplicationTrust.cs
- Root.cs
- DataGridColumnHeaderAutomationPeer.cs
- FormViewModeEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- SecurityStandardsManager.cs
- COM2ExtendedBrowsingHandler.cs
- StackBuilderSink.cs
- BasicExpandProvider.cs
- PerformanceCountersElement.cs
- BitmapMetadata.cs
- CaseInsensitiveComparer.cs
- TrailingSpaceComparer.cs
- CellConstant.cs
- HtmlAnchor.cs
- DataBinder.cs
- AssemblyAssociatedContentFileAttribute.cs
- HGlobalSafeHandle.cs
- FlowNode.cs
- ExpressionTextBoxAutomationPeer.cs
- CqlErrorHelper.cs
- MenuAutomationPeer.cs
- AnnotationResourceCollection.cs
- WebBrowserEvent.cs
- TransactionTraceIdentifier.cs
- ComboBox.cs
- SafeTimerHandle.cs
- XmlSerializableWriter.cs
- DataObjectAttribute.cs
- ProfessionalColorTable.cs
- QilChoice.cs
- ToolboxItemAttribute.cs
- ReplyChannelAcceptor.cs
- CommandID.cs
- Floater.cs
- smtppermission.cs
- TreeNodeClickEventArgs.cs
- NetworkInformationException.cs
- _NegoStream.cs
- OrderedDictionary.cs
- ListCollectionView.cs
- HierarchicalDataSourceDesigner.cs
- ClrPerspective.cs
- PathTooLongException.cs
- StreamGeometry.cs
- DefaultBindingPropertyAttribute.cs
- FastEncoder.cs
- ReadOnlyHierarchicalDataSource.cs
- SplitterEvent.cs
- ControlPaint.cs
- Listbox.cs
- SqlDataSourceFilteringEventArgs.cs
- PartitionResolver.cs
- EasingQuaternionKeyFrame.cs
- Boolean.cs
- TripleDESCryptoServiceProvider.cs
- StackSpiller.Temps.cs
- ListViewCancelEventArgs.cs
- MimeMultiPart.cs
- DataControlButton.cs
- UpdateEventArgs.cs
- DataSourceCache.cs
- Button.cs
- BamlStream.cs
- XmlSerializerVersionAttribute.cs
- DesignerAttribute.cs
- IIS7UserPrincipal.cs
- InvokeMethodActivityDesigner.cs
- SessionStateSection.cs
- COM2ExtendedUITypeEditor.cs
- Int64.cs
- RegisteredHiddenField.cs
- WeakEventTable.cs
- ErrorProvider.cs
- CustomPopupPlacement.cs
- LayoutEvent.cs
- ClassImporter.cs
- WindowInteropHelper.cs
- ManagedIStream.cs
- PointAnimationUsingKeyFrames.cs
- Int64AnimationUsingKeyFrames.cs
- LoadedOrUnloadedOperation.cs
- _CacheStreams.cs
- WizardForm.cs
- SchemaCollectionCompiler.cs
- HeaderUtility.cs
- InternalConfigEventArgs.cs
- PointCollection.cs
- WeakReadOnlyCollection.cs
- SessionSwitchEventArgs.cs