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
- AssertSection.cs
- MobileUserControlDesigner.cs
- RawUIStateInputReport.cs
- ProviderConnectionPointCollection.cs
- CultureTableRecord.cs
- ToolStripContentPanel.cs
- BulletedListEventArgs.cs
- OleCmdHelper.cs
- SmiEventSink_DeferedProcessing.cs
- AssemblyHash.cs
- DataServiceConfiguration.cs
- DateTimeUtil.cs
- ReachDocumentPageSerializer.cs
- TdsParserHelperClasses.cs
- ProcessDesigner.cs
- PrivateFontCollection.cs
- CompensationDesigner.cs
- SmtpMail.cs
- SettingsSection.cs
- TransformDescriptor.cs
- PointHitTestResult.cs
- SelectionEditor.cs
- PageClientProxyGenerator.cs
- QuaternionConverter.cs
- LogicalExpr.cs
- Process.cs
- C14NUtil.cs
- ConcurrentDictionary.cs
- DataGridViewCellCancelEventArgs.cs
- BitmapEffectInputConnector.cs
- Int64.cs
- ProbeRequestResponseAsyncResult.cs
- XmlAttributes.cs
- localization.cs
- TextPattern.cs
- SettingsProviderCollection.cs
- ColorConvertedBitmap.cs
- DataViewSettingCollection.cs
- RtfNavigator.cs
- ContainerParagraph.cs
- KeyTimeConverter.cs
- WebHttpSecurityElement.cs
- LayoutUtils.cs
- SqlFlattener.cs
- ToolboxBitmapAttribute.cs
- Tool.cs
- ServiceAuthorizationElement.cs
- SafeBitVector32.cs
- QuotedPrintableStream.cs
- StringInfo.cs
- ListViewTableRow.cs
- StreamingContext.cs
- MimeBasePart.cs
- TableRowGroupCollection.cs
- InputScope.cs
- WebControl.cs
- SingleTagSectionHandler.cs
- SystemUnicastIPAddressInformation.cs
- CodeAccessSecurityEngine.cs
- SqlVersion.cs
- PreservationFileReader.cs
- ProjectionAnalyzer.cs
- NativeMethods.cs
- ActivityExecutionContext.cs
- EventLogPermissionAttribute.cs
- _PooledStream.cs
- PropertyReference.cs
- RectangleF.cs
- Interlocked.cs
- BooleanAnimationBase.cs
- PermissionSetEnumerator.cs
- FontFamilyIdentifier.cs
- AtlasWeb.Designer.cs
- InternalUserCancelledException.cs
- JapaneseLunisolarCalendar.cs
- ImagingCache.cs
- BinaryObjectReader.cs
- DesignerView.xaml.cs
- Timer.cs
- CodeValidator.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SafeNativeMethods.cs
- DispatcherOperation.cs
- BitmapInitialize.cs
- MsmqTransportBindingElement.cs
- TextSelectionHelper.cs
- TextBox.cs
- RNGCryptoServiceProvider.cs
- SHA384CryptoServiceProvider.cs
- ClassValidator.cs
- CompoundFileStreamReference.cs
- SymbolTable.cs
- XPathNavigatorReader.cs
- DispatcherFrame.cs
- FragmentQueryProcessor.cs
- EditorZone.cs
- Lock.cs
- TextEditorLists.cs
- XmlSchemaComplexContentRestriction.cs
- RightsManagementEncryptionTransform.cs