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
- cookiecollection.cs
- HuffModule.cs
- PopupRootAutomationPeer.cs
- BindingContext.cs
- UserControlFileEditor.cs
- ReferenceService.cs
- AsymmetricSignatureFormatter.cs
- DocumentViewerBase.cs
- AsnEncodedData.cs
- ActivityDesignerHighlighter.cs
- MetadataException.cs
- SourceFileInfo.cs
- SessionStateSection.cs
- XamlStyleSerializer.cs
- DesignerAttribute.cs
- TextTreeNode.cs
- DocumentStatusResources.cs
- InputMethod.cs
- IndexedGlyphRun.cs
- ProtectedProviderSettings.cs
- JsonFormatReaderGenerator.cs
- QueryContinueDragEvent.cs
- TrackingStringDictionary.cs
- ListViewInsertionMark.cs
- Int32AnimationBase.cs
- AssemblyBuilder.cs
- XmlCharCheckingReader.cs
- OLEDB_Enum.cs
- Byte.cs
- Vertex.cs
- PublishLicense.cs
- BaseTransportHeaders.cs
- DeflateStreamAsyncResult.cs
- Point3DCollection.cs
- EdmEntityTypeAttribute.cs
- _ShellExpression.cs
- NumericUpDown.cs
- BitVector32.cs
- Stackframe.cs
- EventLogPermissionEntry.cs
- MimePart.cs
- DodSequenceMerge.cs
- Pool.cs
- NumericPagerField.cs
- SortedList.cs
- TextComposition.cs
- BackgroundFormatInfo.cs
- EventLogWatcher.cs
- UpdateCompiler.cs
- PackageDigitalSignatureManager.cs
- HtmlTitle.cs
- SiteMapDataSourceView.cs
- Nodes.cs
- SoapInteropTypes.cs
- ChangeBlockUndoRecord.cs
- HttpFileCollection.cs
- PartitionerStatic.cs
- IssuanceLicense.cs
- StyleSheetDesigner.cs
- SequentialUshortCollection.cs
- HeaderedItemsControl.cs
- AuthorizationSection.cs
- WindowsTooltip.cs
- ActivityDefaults.cs
- UnsafeNativeMethods.cs
- HashJoinQueryOperatorEnumerator.cs
- DateTimeValueSerializerContext.cs
- PixelShader.cs
- Condition.cs
- SQLGuid.cs
- ReliabilityContractAttribute.cs
- XmlWrappingReader.cs
- WorkflowDebuggerSteppingAttribute.cs
- Convert.cs
- TemplatePropertyEntry.cs
- ValueTypeFixupInfo.cs
- DrawListViewItemEventArgs.cs
- FormsAuthenticationEventArgs.cs
- HttpListenerPrefixCollection.cs
- ValidationHelper.cs
- TextEditorTables.cs
- LoginView.cs
- LineServices.cs
- Point.cs
- JsonGlobals.cs
- XmlChoiceIdentifierAttribute.cs
- PageRouteHandler.cs
- PauseStoryboard.cs
- SoundPlayer.cs
- RightNameExpirationInfoPair.cs
- ObjectHandle.cs
- HtmlElementErrorEventArgs.cs
- WriteStateInfoBase.cs
- StartUpEventArgs.cs
- StorageSetMapping.cs
- XmlNodeReader.cs
- CounterSampleCalculator.cs
- ButtonBaseAdapter.cs
- ClientScriptManager.cs
- Condition.cs