Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- JsonWriterDelegator.cs
- ViewValidator.cs
- XmlAtomErrorReader.cs
- RegexInterpreter.cs
- ProfileGroupSettings.cs
- CreateDataSourceDialog.cs
- SafeNativeMethods.cs
- CodeIdentifiers.cs
- WebPartEditorCancelVerb.cs
- FeatureSupport.cs
- OleDbEnumerator.cs
- WorkflowApplicationCompletedException.cs
- ConsoleKeyInfo.cs
- JsonStringDataContract.cs
- Visual.cs
- ImageMap.cs
- GlobalEventManager.cs
- BatchParser.cs
- ClientSection.cs
- TypeName.cs
- FormsAuthenticationConfiguration.cs
- CngAlgorithmGroup.cs
- Speller.cs
- WebPartRestoreVerb.cs
- PropertyInformation.cs
- ReadContentAsBinaryHelper.cs
- LineVisual.cs
- SQLDouble.cs
- SimpleWebHandlerParser.cs
- ProfessionalColors.cs
- PathGeometry.cs
- EdmItemError.cs
- SqlCacheDependency.cs
- PtsCache.cs
- XmlSchemaComplexType.cs
- DesignerSerializerAttribute.cs
- UrlPath.cs
- DateTimePicker.cs
- CollectionBuilder.cs
- LicenseException.cs
- AttachmentService.cs
- SoapUnknownHeader.cs
- Freezable.cs
- ListViewCommandEventArgs.cs
- CodeGroup.cs
- MsmqIntegrationChannelListener.cs
- HitTestDrawingContextWalker.cs
- StartUpEventArgs.cs
- Message.cs
- ByteAnimationUsingKeyFrames.cs
- HtmlShim.cs
- Formatter.cs
- EvidenceTypeDescriptor.cs
- SynchronizingStream.cs
- LinkTarget.cs
- ImageListUtils.cs
- XmlDocumentViewSchema.cs
- RuntimeEnvironment.cs
- Stroke2.cs
- ProcessThreadCollection.cs
- RegexCompilationInfo.cs
- WebRequestModuleElement.cs
- WinEventWrap.cs
- InputLanguageSource.cs
- TraceSource.cs
- ControlPropertyNameConverter.cs
- BasicAsyncResult.cs
- ResourceDescriptionAttribute.cs
- Vector3DCollectionValueSerializer.cs
- Listbox.cs
- BamlLocalizableResourceKey.cs
- WindowInteractionStateTracker.cs
- InvalidAsynchronousStateException.cs
- XmlSchemaExporter.cs
- Switch.cs
- RequestSecurityTokenResponse.cs
- TemplateControlCodeDomTreeGenerator.cs
- MultiViewDesigner.cs
- PropertyChangedEventArgs.cs
- CompModHelpers.cs
- Lasso.cs
- httpserverutility.cs
- ResourcePermissionBaseEntry.cs
- ToolBarPanel.cs
- SystemResourceHost.cs
- ProxyWebPartManagerDesigner.cs
- ResolveDuplexAsyncResult.cs
- CodeGroup.cs
- GridItem.cs
- Int32AnimationUsingKeyFrames.cs
- StylusPlugInCollection.cs
- CssStyleCollection.cs
- ImageField.cs
- XmlSerializerNamespaces.cs
- StorageRoot.cs
- SqlProfileProvider.cs
- ToolStripPanelRow.cs
- DateTimeConstantAttribute.cs
- StaticFileHandler.cs
- ToolboxItemFilterAttribute.cs