Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- _ListenerResponseStream.cs
- CommandID.cs
- TraceHandler.cs
- WebPartManagerDesigner.cs
- ParseNumbers.cs
- ToolStripSettings.cs
- NativeMethods.cs
- FontFamilyConverter.cs
- ParameterModifier.cs
- DbDeleteCommandTree.cs
- PhonemeConverter.cs
- StorageRoot.cs
- RecognizerInfo.cs
- TextBoxBase.cs
- HitTestFilterBehavior.cs
- EarlyBoundInfo.cs
- CachedRequestParams.cs
- WindowsListViewScroll.cs
- PassportAuthentication.cs
- WebConfigurationManager.cs
- InteropDesigner.xaml.cs
- ProjectionPlanCompiler.cs
- AsyncDataRequest.cs
- DbInsertCommandTree.cs
- ToolStripItemCollection.cs
- WindowsAuthenticationModule.cs
- MemberInitExpression.cs
- WindowsPen.cs
- ClientTarget.cs
- RoleManagerModule.cs
- PropertyPushdownHelper.cs
- DbConnectionPoolIdentity.cs
- DesignUtil.cs
- SHA256.cs
- RankException.cs
- HostProtectionPermission.cs
- TypeDependencyAttribute.cs
- BamlResourceSerializer.cs
- DbConnectionHelper.cs
- XPathDocumentBuilder.cs
- BuildProviderCollection.cs
- PageFunction.cs
- SslStream.cs
- OciLobLocator.cs
- Debug.cs
- SelectionItemProviderWrapper.cs
- MapPathBasedVirtualPathProvider.cs
- GridViewSortEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- SHA384.cs
- ResponseStream.cs
- ReferencedType.cs
- MsmqInputSessionChannel.cs
- SerializationAttributes.cs
- ConfigurationElement.cs
- CodeBlockBuilder.cs
- UdpTransportBindingElement.cs
- HtmlInputButton.cs
- BitmapFrameDecode.cs
- ProgressBarRenderer.cs
- Application.cs
- Base64Encoding.cs
- Context.cs
- CodeCompileUnit.cs
- ObjectStateFormatter.cs
- DataReceivedEventArgs.cs
- StructureChangedEventArgs.cs
- relpropertyhelper.cs
- TreeNodeStyle.cs
- ExpressionPrefixAttribute.cs
- ParseElementCollection.cs
- RewritingProcessor.cs
- MissingFieldException.cs
- XmlSchemaType.cs
- NativeRightsManagementAPIsStructures.cs
- AlphaSortedEnumConverter.cs
- XmlQualifiedNameTest.cs
- DbConnectionInternal.cs
- KerberosRequestorSecurityToken.cs
- GeneralTransformGroup.cs
- PriorityQueue.cs
- SqlNodeAnnotations.cs
- ClockController.cs
- DataGridItemEventArgs.cs
- DispatcherFrame.cs
- Window.cs
- CipherData.cs
- ByteRangeDownloader.cs
- MatrixTransform3D.cs
- bidPrivateBase.cs
- TakeQueryOptionExpression.cs
- FormViewUpdatedEventArgs.cs
- PeerCollaborationPermission.cs
- QuaternionRotation3D.cs
- SafeLibraryHandle.cs
- TypeLibConverter.cs
- QilNode.cs
- PathTooLongException.cs
- CacheVirtualItemsEvent.cs
- ApplicationHost.cs