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
- PointAnimation.cs
- MaterialCollection.cs
- DependencyPropertyKey.cs
- TextDocumentView.cs
- ObjectDataSourceMethodEventArgs.cs
- COSERVERINFO.cs
- ProxyAttribute.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- MetadataCache.cs
- ObjectViewListener.cs
- PartialToken.cs
- PickDesigner.xaml.cs
- TableItemStyle.cs
- CodeAccessPermission.cs
- CollectionViewSource.cs
- EventItfInfo.cs
- SqlUserDefinedAggregateAttribute.cs
- ArraySegment.cs
- ExceptionUtil.cs
- IteratorDescriptor.cs
- ExpressionPrefixAttribute.cs
- RoleManagerModule.cs
- JsonSerializer.cs
- NativeMethods.cs
- HtmlTitle.cs
- CustomAttributeBuilder.cs
- ListControl.cs
- AtomPub10ServiceDocumentFormatter.cs
- PageThemeBuildProvider.cs
- DataGridCaption.cs
- XmlEventCache.cs
- ErrorWrapper.cs
- QilNode.cs
- Model3DCollection.cs
- ElementHostAutomationPeer.cs
- ToolStripDropDownClosingEventArgs.cs
- BoundField.cs
- SchemaNotation.cs
- GridViewRow.cs
- ToolStripSystemRenderer.cs
- UnsafeNetInfoNativeMethods.cs
- ToolStripDropDownMenu.cs
- ByteStreamGeometryContext.cs
- ListMarkerSourceInfo.cs
- SystemTcpConnection.cs
- MemberListBinding.cs
- ColorTypeConverter.cs
- GridView.cs
- Storyboard.cs
- ReflectionTypeLoadException.cs
- ReturnEventArgs.cs
- DynamicResourceExtensionConverter.cs
- SQLDecimalStorage.cs
- UrlAuthorizationModule.cs
- StyleXamlParser.cs
- IgnoreFlushAndCloseStream.cs
- PositiveTimeSpanValidator.cs
- SHA1.cs
- ObjectQuery.cs
- BoolExpressionVisitors.cs
- InternalCache.cs
- HasCopySemanticsAttribute.cs
- HighlightVisual.cs
- WorkflowNamespace.cs
- BitmapEffectGeneralTransform.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Serializer.cs
- ExpressionBinding.cs
- TokenFactoryCredential.cs
- RepeaterItemEventArgs.cs
- Highlights.cs
- ZipArchive.cs
- baseshape.cs
- HtmlInputSubmit.cs
- NavigatorInvalidBodyAccessException.cs
- NavigateEvent.cs
- SqlUdtInfo.cs
- MediaElementAutomationPeer.cs
- FrugalList.cs
- QueueProcessor.cs
- HttpServerChannel.cs
- SqlFunctionAttribute.cs
- TreeViewCancelEvent.cs
- FontWeight.cs
- ModelItemImpl.cs
- unsafeIndexingFilterStream.cs
- EventProxy.cs
- HttpPostServerProtocol.cs
- ResourceProviderFactory.cs
- GPPOINTF.cs
- ToolStripDropDownMenu.cs
- WinFormsSecurity.cs
- oledbmetadatacolumnnames.cs
- SHA256Managed.cs
- WebBrowserDocumentCompletedEventHandler.cs
- GeometryGroup.cs
- HttpWrapper.cs
- PropertyManager.cs
- PreProcessor.cs
- DispatcherFrame.cs