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
- Atom10FormatterFactory.cs
- EdmComplexTypeAttribute.cs
- DescendentsWalkerBase.cs
- DoubleAnimationBase.cs
- SurrogateSelector.cs
- ContextInformation.cs
- SystemIPInterfaceProperties.cs
- XPathNavigatorKeyComparer.cs
- IssuedTokenParametersEndpointAddressElement.cs
- ProfileEventArgs.cs
- SoapCodeExporter.cs
- MessageEncoderFactory.cs
- EntityDesignerBuildProvider.cs
- basevalidator.cs
- DocumentOrderQuery.cs
- UnSafeCharBuffer.cs
- SendActivityDesigner.cs
- VariantWrapper.cs
- xsdvalidator.cs
- Context.cs
- DataGridViewTopLeftHeaderCell.cs
- LoadedOrUnloadedOperation.cs
- VirtualPathProvider.cs
- SetMemberBinder.cs
- TakeQueryOptionExpression.cs
- HttpResponse.cs
- HashRepartitionStream.cs
- ConstructorExpr.cs
- MarkupProperty.cs
- TypeTypeConverter.cs
- SupportingTokenChannel.cs
- TokenBasedSet.cs
- ReadOnlyHierarchicalDataSource.cs
- XXXInfos.cs
- FontNamesConverter.cs
- CssClassPropertyAttribute.cs
- TemplateBindingExpression.cs
- GeneralTransform.cs
- ZoomPercentageConverter.cs
- RefreshEventArgs.cs
- Header.cs
- SmtpDateTime.cs
- FlowDocumentReader.cs
- WebReferencesBuildProvider.cs
- RelationshipWrapper.cs
- ConfigurationSettings.cs
- XslTransform.cs
- XmlCountingReader.cs
- ZoneButton.cs
- DispatcherExceptionFilterEventArgs.cs
- ScaleTransform.cs
- RowUpdatingEventArgs.cs
- EllipseGeometry.cs
- Header.cs
- IisTraceWebEventProvider.cs
- RenameRuleObjectDialog.Designer.cs
- WSHttpBindingBaseElement.cs
- Renderer.cs
- HtmlImageAdapter.cs
- SoapSchemaExporter.cs
- ColorConvertedBitmap.cs
- DeviceFilterEditorDialog.cs
- ImpersonateTokenRef.cs
- ControlPaint.cs
- NetTcpBindingElement.cs
- ArgumentDesigner.xaml.cs
- CompletedAsyncResult.cs
- SamlAssertion.cs
- LabelDesigner.cs
- RuntimeCompatibilityAttribute.cs
- PersistenceContext.cs
- ListBoxItemAutomationPeer.cs
- ComPlusTraceRecord.cs
- DetailsViewPageEventArgs.cs
- WebSysDescriptionAttribute.cs
- TextRangeBase.cs
- SoapIgnoreAttribute.cs
- SspiSafeHandles.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- OleDbFactory.cs
- WebBrowserSiteBase.cs
- EntityDataSourceUtil.cs
- Solver.cs
- PixelFormats.cs
- PointLight.cs
- CompilationUtil.cs
- ZipIOLocalFileBlock.cs
- DynamicILGenerator.cs
- WsdlBuildProvider.cs
- SafeLocalMemHandle.cs
- DataGridViewTextBoxColumn.cs
- AttachInfo.cs
- ThreadLocal.cs
- SerializationEventsCache.cs
- BaseAppDomainProtocolHandler.cs
- MergeLocalizationDirectives.cs
- Trace.cs
- TextContainerHelper.cs
- X509Utils.cs
- AQNBuilder.cs