Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / GroupBox.cs / 1305600 / 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
- DesignTableCollection.cs
- CreateUserWizardDesigner.cs
- FormsAuthenticationUserCollection.cs
- RuleElement.cs
- HtmlDocument.cs
- BoundColumn.cs
- QueryableDataSource.cs
- XhtmlBasicControlAdapter.cs
- WebEventCodes.cs
- HWStack.cs
- CodeExporter.cs
- ExceptQueryOperator.cs
- RelativeSource.cs
- ShapingWorkspace.cs
- PathSegment.cs
- PageRouteHandler.cs
- RectAnimationBase.cs
- BitmapFrameEncode.cs
- AliasGenerator.cs
- ToolStripLabel.cs
- DependencyPropertyHelper.cs
- DropDownList.cs
- StringUtil.cs
- RefreshPropertiesAttribute.cs
- Compiler.cs
- ControlBindingsConverter.cs
- ContextBase.cs
- AudienceUriMode.cs
- QfeChecker.cs
- CheckBoxFlatAdapter.cs
- WebUtil.cs
- BlockCollection.cs
- AxisAngleRotation3D.cs
- XmlNode.cs
- SyntaxCheck.cs
- AnalyzedTree.cs
- SmtpNtlmAuthenticationModule.cs
- ResourceContainer.cs
- QueryTaskGroupState.cs
- TemplateBaseAction.cs
- CardSpaceSelector.cs
- Events.cs
- ComponentSerializationService.cs
- _NegoStream.cs
- TransactionProtocol.cs
- InfoCardKeyedHashAlgorithm.cs
- Int64.cs
- FormClosingEvent.cs
- ControlParameter.cs
- Parallel.cs
- StreamUpdate.cs
- FastPropertyAccessor.cs
- DecimalSumAggregationOperator.cs
- ProjectionPlanCompiler.cs
- PenThreadWorker.cs
- MeasurementDCInfo.cs
- TemplateField.cs
- CodeCatchClause.cs
- HttpCookie.cs
- ListViewContainer.cs
- EventManager.cs
- EntityDataSourceEntitySetNameItem.cs
- SwitchAttribute.cs
- StagingAreaInputItem.cs
- DataObject.cs
- RunClient.cs
- MultiTouchSystemGestureLogic.cs
- DnsEndPoint.cs
- ArrayConverter.cs
- GreenMethods.cs
- httpstaticobjectscollection.cs
- CSharpCodeProvider.cs
- EntityParameterCollection.cs
- SslStreamSecurityElement.cs
- ArcSegment.cs
- Vector3DValueSerializer.cs
- TemplatePartAttribute.cs
- _LazyAsyncResult.cs
- GridViewColumnHeader.cs
- SoapReflectionImporter.cs
- TypeReference.cs
- ModelItemImpl.cs
- InstanceStoreQueryResult.cs
- BuildResult.cs
- Win32MouseDevice.cs
- ErrorHandler.cs
- sqlnorm.cs
- XPathAncestorIterator.cs
- TextDataBindingHandler.cs
- BindableTemplateBuilder.cs
- DataChangedEventManager.cs
- SiteMapDataSource.cs
- FigureHelper.cs
- HtmlContainerControl.cs
- TemplateKeyConverter.cs
- UrlParameterWriter.cs
- ThrowHelper.cs
- DecimalAnimationBase.cs
- XamlTreeBuilder.cs
- Point4DValueSerializer.cs