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
- SqlXml.cs
- WindowInteropHelper.cs
- COM2IPerPropertyBrowsingHandler.cs
- RC2CryptoServiceProvider.cs
- GridSplitterAutomationPeer.cs
- ProgressiveCrcCalculatingStream.cs
- WmfPlaceableFileHeader.cs
- ClientConvert.cs
- XsltCompileContext.cs
- InternalBufferOverflowException.cs
- BuildDependencySet.cs
- ComplexTypeEmitter.cs
- PngBitmapEncoder.cs
- Int64AnimationUsingKeyFrames.cs
- StringInfo.cs
- DrawListViewSubItemEventArgs.cs
- WinCategoryAttribute.cs
- ListBox.cs
- UrlMappingsSection.cs
- OdbcConnectionHandle.cs
- PerfCounterSection.cs
- DefaultValidator.cs
- WebPartAddingEventArgs.cs
- _ListenerAsyncResult.cs
- ConfigXmlSignificantWhitespace.cs
- XmlReflectionImporter.cs
- X509SecurityToken.cs
- EventSetterHandlerConverter.cs
- PassportIdentity.cs
- ProcessHostConfigUtils.cs
- TdsParserSafeHandles.cs
- DecimalConstantAttribute.cs
- TemplateContainer.cs
- CallContext.cs
- CheckBox.cs
- SignedXml.cs
- XmlNodeReader.cs
- DataServiceQuery.cs
- BindingNavigator.cs
- HtmlInputReset.cs
- AutomationIdentifierGuids.cs
- ObjectIDGenerator.cs
- ViewManager.cs
- HttpRuntimeSection.cs
- ModifierKeysValueSerializer.cs
- XamlPathDataSerializer.cs
- BindingsCollection.cs
- FormViewPagerRow.cs
- Argument.cs
- TCPClient.cs
- DnsPermission.cs
- OptimizedTemplateContentHelper.cs
- EdmProperty.cs
- ToolboxComponentsCreatedEventArgs.cs
- Bitmap.cs
- TextElementCollectionHelper.cs
- NavigationFailedEventArgs.cs
- ErrorWebPart.cs
- AtomMaterializerLog.cs
- ListDataHelper.cs
- SerializationEventsCache.cs
- VirtualPathUtility.cs
- Ipv6Element.cs
- Parameter.cs
- MetadataArtifactLoaderCompositeFile.cs
- WebPartUserCapability.cs
- FontStretchConverter.cs
- MenuBindingsEditor.cs
- BaseCodeDomTreeGenerator.cs
- TemplateBuilder.cs
- BrowserCapabilitiesFactoryBase.cs
- PopupControlService.cs
- GeneralTransform.cs
- ChannelPool.cs
- ForeignKeyConstraint.cs
- UpDownEvent.cs
- ZipIOExtraFieldPaddingElement.cs
- RawMouseInputReport.cs
- baseaxisquery.cs
- ReceiveDesigner.xaml.cs
- TdsValueSetter.cs
- CodeVariableReferenceExpression.cs
- HttpResponseHeader.cs
- NavigationWindow.cs
- clipboard.cs
- AxDesigner.cs
- COM2FontConverter.cs
- SqlDataSourceEnumerator.cs
- SimpleBitVector32.cs
- NativeMethods.cs
- DynamicValueConverter.cs
- ScrollBar.cs
- GeneralTransform3DCollection.cs
- DirectoryInfo.cs
- CellQuery.cs
- TogglePattern.cs
- ExpandSegment.cs
- MDIClient.cs
- CodeTypeReferenceExpression.cs
- DataSysAttribute.cs