Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DocobjHost.cs
- Vector3DAnimationUsingKeyFrames.cs
- HostingPreferredMapPath.cs
- PropertyMapper.cs
- GeneralTransformGroup.cs
- EntityDataSourceViewSchema.cs
- XmlSerializationGeneratedCode.cs
- SectionRecord.cs
- InternalTransaction.cs
- SeverityFilter.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AVElementHelper.cs
- DBPropSet.cs
- ObjectListCommandsPage.cs
- QilInvokeEarlyBound.cs
- ClientScriptManagerWrapper.cs
- Mouse.cs
- FacetValues.cs
- RunInstallerAttribute.cs
- EventLogEntryCollection.cs
- CodeDelegateInvokeExpression.cs
- XmlSchemaImport.cs
- BezierSegment.cs
- RequiredFieldValidator.cs
- PositiveTimeSpanValidator.cs
- StructuredProperty.cs
- DataObject.cs
- AuthenticationConfig.cs
- TileModeValidation.cs
- PartialCachingAttribute.cs
- XsdDuration.cs
- HtmlInputSubmit.cs
- XomlCompilerParameters.cs
- TextEditorDragDrop.cs
- ClientScriptItemCollection.cs
- DeviceContext2.cs
- SizeAnimationBase.cs
- EntityTransaction.cs
- WebResponse.cs
- TextEditorCharacters.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MethodBuilder.cs
- CustomCategoryAttribute.cs
- ControlCollection.cs
- OletxDependentTransaction.cs
- LocatorPart.cs
- Helpers.cs
- ResourceDictionary.cs
- StateManagedCollection.cs
- ProxyHelper.cs
- ChangePassword.cs
- RectangleF.cs
- HandleCollector.cs
- AssemblyEvidenceFactory.cs
- GacUtil.cs
- ipaddressinformationcollection.cs
- RC2CryptoServiceProvider.cs
- SystemGatewayIPAddressInformation.cs
- XmlNodeChangedEventManager.cs
- StylusPlugin.cs
- ErrorWrapper.cs
- RoleService.cs
- InstanceContextMode.cs
- DeviceContexts.cs
- GAC.cs
- Compilation.cs
- ContextQuery.cs
- EntityDataSourceWrapper.cs
- Hash.cs
- XPathMessageFilterElement.cs
- SynchronizedRandom.cs
- MethodToken.cs
- Peer.cs
- TypeCodeDomSerializer.cs
- DataSourceProvider.cs
- StylusPointPropertyId.cs
- MultiByteCodec.cs
- BindingCollection.cs
- SrgsRuleRef.cs
- SQLByteStorage.cs
- WorkflowServiceHostFactory.cs
- PublisherIdentityPermission.cs
- EncoderParameters.cs
- PerformanceCounterPermissionEntryCollection.cs
- WindowsListBox.cs
- MetadataUtil.cs
- WindowsFormsHelpers.cs
- HandlerBase.cs
- storagemappingitemcollection.viewdictionary.cs
- MenuItemCollection.cs
- AspNetHostingPermission.cs
- remotingproxy.cs
- PingOptions.cs
- DynamicQueryableWrapper.cs
- StringAnimationUsingKeyFrames.cs
- SqlDeflator.cs
- DiscoveryInnerClientAdhocCD1.cs
- Baml6Assembly.cs
- TextEditorTables.cs
- XmlNodeChangedEventArgs.cs