Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AliasExpr.cs
- XmlSerializerNamespaces.cs
- CompositeCollectionView.cs
- TypeListConverter.cs
- ScrollPattern.cs
- DbConnectionInternal.cs
- RetriableClipboard.cs
- FontWeightConverter.cs
- ExpressionBuilderCollection.cs
- LoadedEvent.cs
- DataGridViewCellCancelEventArgs.cs
- SessionStateItemCollection.cs
- StringExpressionSet.cs
- UpdatePanelTrigger.cs
- UserPreferenceChangingEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- PropertySegmentSerializationProvider.cs
- CodeSnippetCompileUnit.cs
- HttpWebRequest.cs
- DiagnosticsConfigurationHandler.cs
- ServiceObjectContainer.cs
- SmtpAuthenticationManager.cs
- XmlElementAttributes.cs
- UnmanagedMemoryStream.cs
- BackgroundWorker.cs
- MyContact.cs
- UrlMappingsModule.cs
- ScaleTransform3D.cs
- HwndSubclass.cs
- ZipFileInfoCollection.cs
- QueryOperationResponseOfT.cs
- StorageRoot.cs
- ResponseStream.cs
- ScaleTransform.cs
- WindowsToolbar.cs
- ContentTypeSettingClientMessageFormatter.cs
- SimpleColumnProvider.cs
- SchemaConstraints.cs
- StylusPlugInCollection.cs
- SHA384Managed.cs
- JsonQNameDataContract.cs
- DataGridViewIntLinkedList.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ColorPalette.cs
- SiteMapPath.cs
- SharingService.cs
- AmbientLight.cs
- ConsumerConnectionPoint.cs
- Help.cs
- TypedOperationInfo.cs
- ContentElement.cs
- ZipIOModeEnforcingStream.cs
- WindowCollection.cs
- DependencyPropertyConverter.cs
- ApplicationFileParser.cs
- SqlNode.cs
- OleDbCommand.cs
- ColumnWidthChangingEvent.cs
- MultiDataTrigger.cs
- SafeTokenHandle.cs
- MustUnderstandSoapException.cs
- DockingAttribute.cs
- BaseContextMenu.cs
- TdsParser.cs
- FillRuleValidation.cs
- MetadataWorkspace.cs
- Literal.cs
- SqlCommandSet.cs
- MemoryMappedViewAccessor.cs
- PointConverter.cs
- ImpersonationContext.cs
- DbBuffer.cs
- IPHostEntry.cs
- MessagePartDescriptionCollection.cs
- StringUtil.cs
- BooleanExpr.cs
- WebPartEditorCancelVerb.cs
- DataGridColumnCollectionEditor.cs
- FormsAuthenticationEventArgs.cs
- TextLineResult.cs
- SoapCodeExporter.cs
- TextBoxAutoCompleteSourceConverter.cs
- XslTransformFileEditor.cs
- MatrixStack.cs
- DbProviderServices.cs
- ObjectSpanRewriter.cs
- SerialPort.cs
- ToolBarButton.cs
- UpdateRecord.cs
- ITreeGenerator.cs
- TreeNodeBindingDepthConverter.cs
- CallbackTimeoutsElement.cs
- IndexExpression.cs
- WebContext.cs
- LocalizationComments.cs
- WindowAutomationPeer.cs
- ResetableIterator.cs
- DeflateEmulationStream.cs
- ISAPIApplicationHost.cs
- DispatcherProcessingDisabled.cs