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
- WebServiceErrorEvent.cs
- RandomNumberGenerator.cs
- ValidateNames.cs
- OleDbPropertySetGuid.cs
- AnnotationResourceChangedEventArgs.cs
- EntityRecordInfo.cs
- WebBrowserNavigatedEventHandler.cs
- SqlMethodAttribute.cs
- WindowsFont.cs
- TransportConfigurationTypeElement.cs
- CommandHelpers.cs
- FixedElement.cs
- QueryValue.cs
- QueryCorrelationInitializer.cs
- documentsequencetextcontainer.cs
- SymbolPair.cs
- VersionPair.cs
- WebPartCancelEventArgs.cs
- EntityCommandCompilationException.cs
- TextFragmentEngine.cs
- SqlVersion.cs
- OdbcConnectionString.cs
- BCLDebug.cs
- connectionpool.cs
- IApplicationTrustManager.cs
- DiscreteKeyFrames.cs
- IntPtr.cs
- ScopedMessagePartSpecification.cs
- ContextItem.cs
- TextPointerBase.cs
- TableStyle.cs
- TraceListeners.cs
- SafeProcessHandle.cs
- SimpleExpression.cs
- AssociationTypeEmitter.cs
- ModelItemImpl.cs
- HtmlTableRow.cs
- Scene3D.cs
- MultiPropertyDescriptorGridEntry.cs
- ReverseInheritProperty.cs
- Command.cs
- TraceUtils.cs
- ObjectManager.cs
- StorageMappingItemCollection.cs
- MultipartContentParser.cs
- ToolStripOverflowButton.cs
- TableItemPattern.cs
- OleDbRowUpdatedEvent.cs
- ControlAdapter.cs
- ColumnResult.cs
- TraceListeners.cs
- TypeGeneratedEventArgs.cs
- ProcessModule.cs
- _BufferOffsetSize.cs
- EditorPart.cs
- ClientSettingsSection.cs
- InvokePattern.cs
- Rectangle.cs
- WrapperEqualityComparer.cs
- SqlMethodCallConverter.cs
- DataColumnChangeEvent.cs
- CodeObject.cs
- CalendarKeyboardHelper.cs
- SystemWebCachingSectionGroup.cs
- MatchSingleFxEngineOpcode.cs
- Calendar.cs
- IPGlobalProperties.cs
- WindowsEditBoxRange.cs
- CodeConditionStatement.cs
- IsolationInterop.cs
- PriorityItem.cs
- StringConcat.cs
- TripleDESCryptoServiceProvider.cs
- CompiledRegexRunner.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ArrayConverter.cs
- Random.cs
- NavigationEventArgs.cs
- Typeface.cs
- ConvertBinder.cs
- DesignerOptionService.cs
- DataObjectSettingDataEventArgs.cs
- TextSerializer.cs
- BindingListCollectionView.cs
- AppSecurityManager.cs
- ConnectionManagementElementCollection.cs
- ApplicationServiceHelper.cs
- QueueSurrogate.cs
- WebServiceClientProxyGenerator.cs
- DBParameter.cs
- DrawingImage.cs
- COM2IDispatchConverter.cs
- ZeroOpNode.cs
- ValidationRuleCollection.cs
- CellPartitioner.cs
- MulticastDelegate.cs
- DataControlFieldCell.cs
- RootCodeDomSerializer.cs
- Stylesheet.cs
- WebPartDisplayModeCancelEventArgs.cs