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
- XPathNodePointer.cs
- UIHelper.cs
- WebPartConnectVerb.cs
- UInt32Storage.cs
- EastAsianLunisolarCalendar.cs
- PasswordRecovery.cs
- SmtpAuthenticationManager.cs
- DoubleStorage.cs
- TextAction.cs
- CachedCompositeFamily.cs
- AutoResizedEvent.cs
- TemplateControlCodeDomTreeGenerator.cs
- TextTreeInsertElementUndoUnit.cs
- CodeDelegateCreateExpression.cs
- mediaeventshelper.cs
- DataSourceListEditor.cs
- ServiceParser.cs
- SqlFunctions.cs
- SecurityException.cs
- QueryComponents.cs
- ObjectDataProvider.cs
- DesignSurfaceManager.cs
- XsltSettings.cs
- OutputCacheSettingsSection.cs
- SupportsEventValidationAttribute.cs
- AxisAngleRotation3D.cs
- Stack.cs
- LexicalChunk.cs
- QEncodedStream.cs
- UnitControl.cs
- IImplicitResourceProvider.cs
- Win32Interop.cs
- RichTextBox.cs
- ExpressionDumper.cs
- PrimitiveSchema.cs
- SqlClientPermission.cs
- ComboBoxDesigner.cs
- ClipboardData.cs
- RequestCache.cs
- InspectionWorker.cs
- ReliableSessionBindingElementImporter.cs
- BitArray.cs
- ScalarOps.cs
- StickyNoteHelper.cs
- DataGridState.cs
- NumericUpDownAcceleration.cs
- Membership.cs
- VirtualPath.cs
- _ContextAwareResult.cs
- QueryProcessor.cs
- DataPointer.cs
- RuntimeResourceSet.cs
- SecureUICommand.cs
- DocumentsTrace.cs
- PreloadedPackages.cs
- WebPartManagerInternals.cs
- regiisutil.cs
- BinaryMessageEncodingBindingElement.cs
- Misc.cs
- TrackingProfile.cs
- PropertyItemInternal.cs
- Gdiplus.cs
- cookie.cs
- ProviderCollection.cs
- CodeComment.cs
- XmlBinaryReader.cs
- InstanceNameConverter.cs
- TextEditorSelection.cs
- SignedXml.cs
- coordinator.cs
- IfJoinedCondition.cs
- WebReferencesBuildProvider.cs
- SoapTypeAttribute.cs
- SrgsElement.cs
- DataViewSetting.cs
- EtwTrace.cs
- SrgsSubset.cs
- TimeSpanConverter.cs
- EvidenceTypeDescriptor.cs
- CodeSnippetCompileUnit.cs
- DynamicMethod.cs
- AxHost.cs
- ItemList.cs
- SqlRowUpdatedEvent.cs
- MessageBox.cs
- PartitionerQueryOperator.cs
- RelationshipType.cs
- SmtpMail.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- RewritingValidator.cs
- EventProviderWriter.cs
- ExpressionParser.cs
- ToolStripGripRenderEventArgs.cs
- AsyncOperationLifetimeManager.cs
- SoapDocumentServiceAttribute.cs
- SignedInfo.cs
- VectorConverter.cs
- ExpressionBuilder.cs
- SmtpNtlmAuthenticationModule.cs
- ScrollData.cs