Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / GroupBox.cs / 1305600 / 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
- FullTextLine.cs
- ActivitySurrogate.cs
- DefaultHttpHandler.cs
- _LocalDataStore.cs
- LookupNode.cs
- CreateRefExpr.cs
- Vector3DKeyFrameCollection.cs
- CounterSetInstanceCounterDataSet.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ProfileElement.cs
- BamlCollectionHolder.cs
- EndEvent.cs
- DiscoveryReference.cs
- xamlnodes.cs
- XamlWriter.cs
- ToolBarPanel.cs
- OutputWindow.cs
- Variant.cs
- XmlAttributeAttribute.cs
- HttpHandlerAction.cs
- ColumnClickEvent.cs
- ArrayItemReference.cs
- MediaEntryAttribute.cs
- VirtualPath.cs
- BitmapEffectvisualstate.cs
- WebDisplayNameAttribute.cs
- ImageSource.cs
- BoundsDrawingContextWalker.cs
- ToolStripHighContrastRenderer.cs
- WebPermission.cs
- KeyValueInternalCollection.cs
- RouteData.cs
- MetadataException.cs
- ConfigurationPermission.cs
- ButtonRenderer.cs
- ProfessionalColors.cs
- LexicalChunk.cs
- ModelChangedEventArgsImpl.cs
- DownloadProgressEventArgs.cs
- SurrogateEncoder.cs
- NamespaceInfo.cs
- Multiply.cs
- MethodImplAttribute.cs
- ObjectAnimationBase.cs
- FixUpCollection.cs
- DynamicActivity.cs
- ScrollProviderWrapper.cs
- ExtensionSurface.cs
- WorkflowPageSetupDialog.cs
- NetStream.cs
- Italic.cs
- OracleException.cs
- WriteableBitmap.cs
- ObjectCloneHelper.cs
- PrimitiveOperationFormatter.cs
- RegisteredArrayDeclaration.cs
- ConversionHelper.cs
- xml.cs
- RequestCachingSection.cs
- DesignTimeParseData.cs
- PointConverter.cs
- HttpApplication.cs
- FilteredReadOnlyMetadataCollection.cs
- TimeSpanSecondsConverter.cs
- Tile.cs
- WsatAdminException.cs
- ToolStripOverflowButton.cs
- SequenceFullException.cs
- SqlBulkCopy.cs
- TimeSpanValidatorAttribute.cs
- AffineTransform3D.cs
- Misc.cs
- SqlRowUpdatedEvent.cs
- ShortcutKeysEditor.cs
- HtmlHistory.cs
- _AcceptOverlappedAsyncResult.cs
- HttpCookieCollection.cs
- DesignerLinkAdapter.cs
- TemplatedMailWebEventProvider.cs
- FormView.cs
- RelationshipEndMember.cs
- XsdBuilder.cs
- StringConcat.cs
- PageParser.cs
- brushes.cs
- CreateUserErrorEventArgs.cs
- MessageDecoder.cs
- CodeCommentStatementCollection.cs
- SharedConnectionInfo.cs
- AppSettingsExpressionBuilder.cs
- Console.cs
- Setter.cs
- OutputCacheModule.cs
- HttpContext.cs
- RunClient.cs
- StateDesigner.TransitionInfo.cs
- ProxyAssemblyNotLoadedException.cs
- UpdateEventArgs.cs
- TextMetrics.cs
- ConsumerConnectionPointCollection.cs