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
- RequestNavigateEventArgs.cs
- OleDbRowUpdatingEvent.cs
- FormClosingEvent.cs
- NamespaceEmitter.cs
- DivideByZeroException.cs
- Wildcard.cs
- HandlerWithFactory.cs
- CodeSnippetCompileUnit.cs
- MissingSatelliteAssemblyException.cs
- CodeTypeConstructor.cs
- SafeArrayRankMismatchException.cs
- IISUnsafeMethods.cs
- WsdlExporter.cs
- ToggleProviderWrapper.cs
- DesignBindingPropertyDescriptor.cs
- Bezier.cs
- GreenMethods.cs
- ToolStrip.cs
- Timer.cs
- BamlBinaryWriter.cs
- Int32RectValueSerializer.cs
- ComPlusTypeValidator.cs
- TransformProviderWrapper.cs
- DefaultMemberAttribute.cs
- DocumentStatusResources.cs
- TreeNodeCollection.cs
- ScrollBarRenderer.cs
- cookiecontainer.cs
- PerspectiveCamera.cs
- TextElementEnumerator.cs
- EmptyEnumerable.cs
- ListViewDeleteEventArgs.cs
- CompilerError.cs
- StringDictionary.cs
- SecurityCriticalDataForSet.cs
- XDeferredAxisSource.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- CreateParams.cs
- XmlHelper.cs
- ImageFormatConverter.cs
- DbConnectionClosed.cs
- Oid.cs
- EdmValidator.cs
- SignatureConfirmations.cs
- SortedList.cs
- EventLevel.cs
- TextTreeTextElementNode.cs
- InputBindingCollection.cs
- EnumMember.cs
- WebPartConnectVerb.cs
- StylesEditorDialog.cs
- SortKey.cs
- TrackingServices.cs
- EntityProxyTypeInfo.cs
- ContentElement.cs
- Typeface.cs
- NameSpaceExtractor.cs
- Serializer.cs
- SqlInternalConnection.cs
- FormClosedEvent.cs
- GuidelineCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ObjectSet.cs
- ClaimTypes.cs
- QueryInterceptorAttribute.cs
- ButtonBaseDesigner.cs
- RelationHandler.cs
- EventDescriptor.cs
- FlowchartDesigner.xaml.cs
- CalendarData.cs
- FragmentQuery.cs
- TextBreakpoint.cs
- DataServiceHostFactory.cs
- FrameworkTemplate.cs
- LineSegment.cs
- FullTextLine.cs
- AssociationType.cs
- XpsPartBase.cs
- UpdateRecord.cs
- URLAttribute.cs
- DataGrid.cs
- TextServicesContext.cs
- NullableDecimalMinMaxAggregationOperator.cs
- PropertyCollection.cs
- InfiniteTimeSpanConverter.cs
- NonBatchDirectoryCompiler.cs
- Menu.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- _UriSyntax.cs
- MetadataElement.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- ExpressionBinding.cs
- KeyInfo.cs
- X509WindowsSecurityToken.cs
- SupportsEventValidationAttribute.cs
- QilIterator.cs
- BoolLiteral.cs
- OptimizedTemplateContent.cs
- ConvertEvent.cs