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
- DataGridViewDesigner.cs
- BoundingRectTracker.cs
- RecommendedAsConfigurableAttribute.cs
- BitmapEffectGroup.cs
- FamilyMapCollection.cs
- Geometry3D.cs
- RightNameExpirationInfoPair.cs
- SettingsProperty.cs
- XmlSchemaSimpleContent.cs
- WebException.cs
- RuntimeResourceSet.cs
- HttpHostedTransportConfiguration.cs
- NotificationContext.cs
- ToolBarButton.cs
- SuppressMessageAttribute.cs
- DataGridViewElement.cs
- XmlAnyAttributeAttribute.cs
- Fx.cs
- HttpListenerRequest.cs
- MetadataSet.cs
- RTLAwareMessageBox.cs
- Throw.cs
- CodeDirectoryCompiler.cs
- ResourceWriter.cs
- XPathBinder.cs
- SystemIPGlobalStatistics.cs
- ConfigurationValidatorAttribute.cs
- ScrollViewer.cs
- StackOverflowException.cs
- ProxyFragment.cs
- TriggerActionCollection.cs
- _NativeSSPI.cs
- XPathException.cs
- TraceXPathNavigator.cs
- _ListenerResponseStream.cs
- SplitterPanel.cs
- XmlSchemaComplexContentExtension.cs
- ChangeDirector.cs
- ViewValidator.cs
- ExpressionBindingCollection.cs
- HttpEncoder.cs
- QueryOptionExpression.cs
- WebPartDisplayMode.cs
- ReachUIElementCollectionSerializer.cs
- EmptyImpersonationContext.cs
- CleanUpVirtualizedItemEventArgs.cs
- ResourcesGenerator.cs
- IndexOutOfRangeException.cs
- UpdatePanelTrigger.cs
- PerformanceCounterLib.cs
- PTManager.cs
- NativeMethods.cs
- DataGridItem.cs
- _CacheStreams.cs
- CircleEase.cs
- CorrelationKey.cs
- AttachedPropertyBrowsableAttribute.cs
- AutomationElement.cs
- XmlSchemaComplexContentExtension.cs
- Vector3dCollection.cs
- ToolStripSeparatorRenderEventArgs.cs
- StorageScalarPropertyMapping.cs
- SystemGatewayIPAddressInformation.cs
- TCPListener.cs
- ModelTreeManager.cs
- GPPOINT.cs
- LicenseManager.cs
- FormViewUpdatedEventArgs.cs
- WindowAutomationPeer.cs
- SafeNativeMethods.cs
- ModifierKeysValueSerializer.cs
- HttpCookieCollection.cs
- ComponentManagerBroker.cs
- SortedList.cs
- ProfilePropertySettings.cs
- SqlConnectionFactory.cs
- TreeViewItemAutomationPeer.cs
- TypeBuilderInstantiation.cs
- MailAddressCollection.cs
- SectionInformation.cs
- Queue.cs
- Menu.cs
- Tracer.cs
- _LocalDataStore.cs
- Trace.cs
- XmlSortKey.cs
- XmlNamespaceMappingCollection.cs
- ZipIOExtraFieldElement.cs
- ExtenderProvidedPropertyAttribute.cs
- MatrixIndependentAnimationStorage.cs
- Util.cs
- ArrayConverter.cs
- StyleTypedPropertyAttribute.cs
- PrintController.cs
- PropertyMetadata.cs
- BatchStream.cs
- SqlCharStream.cs
- ToolStripRenderEventArgs.cs
- InternalSafeNativeMethods.cs
- XmlCDATASection.cs