Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Separator.cs / 1 / Separator.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using MS.Internal.KnownBoxes; using System.Windows.Automation.Peers; namespace System.Windows.Controls { ////// Separator control is a simple Control subclass that is used in different styles /// depend on container control. Common usage is inside ListBox, ComboBox, MenuItem and ToolBar. /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public class Separator : Control { static Separator() { DefaultStyleKeyProperty.OverrideMetadata(typeof(Separator), new FrameworkPropertyMetadata(typeof(Separator))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(Separator)); IsEnabledProperty.OverrideMetadata(typeof(Separator), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); } internal static void PrepareContainer(Control container) { if (container != null) { // Disable the control and set the alignment to stretch container.IsEnabled = false; container.HorizontalContentAlignment = HorizontalAlignment.Stretch; } } ////// Creates AutomationPeer ( protected override AutomationPeer OnCreateAutomationPeer() { return new SeparatorAutomationPeer(this); } #region DTypeThemeStyleKey // Returns the DependencyObjectType for the registered ThemeStyleKey's default // value. Controls will override this method to return approriate types. internal override DependencyObjectType DTypeThemeStyleKey { get { return _dType; } } private static DependencyObjectType _dType; #endregion DTypeThemeStyleKey } } // 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
- InteropBitmapSource.cs
- SetIndexBinder.cs
- StylusEditingBehavior.cs
- FixedSOMTableCell.cs
- SiteMapDataSourceView.cs
- SystemPens.cs
- future.cs
- X509Utils.cs
- LayoutExceptionEventArgs.cs
- CacheDependency.cs
- ErrorTableItemStyle.cs
- Expander.cs
- TextRangeProviderWrapper.cs
- LogEntrySerializationException.cs
- ObjectListDesigner.cs
- GenericFlowSwitchHelper.cs
- EqualityComparer.cs
- BindingGroup.cs
- UserNameSecurityTokenAuthenticator.cs
- NullReferenceException.cs
- Task.cs
- ServerValidateEventArgs.cs
- DataSourceControl.cs
- DataBoundLiteralControl.cs
- MissingMemberException.cs
- CompilationLock.cs
- SimpleType.cs
- DetailsViewUpdateEventArgs.cs
- XmlSerializerNamespaces.cs
- StyleConverter.cs
- JournalNavigationScope.cs
- ActivityValidator.cs
- ExeConfigurationFileMap.cs
- TextFormatterImp.cs
- DataServiceConfiguration.cs
- Annotation.cs
- TransactionContextManager.cs
- ObjectDataSourceMethodEditor.cs
- TextWriterTraceListener.cs
- XmlSerializerAssemblyAttribute.cs
- XmlArrayAttribute.cs
- PagedControl.cs
- COAUTHINFO.cs
- SqlFunctions.cs
- _NTAuthentication.cs
- ObjectListDesigner.cs
- TextFragmentEngine.cs
- PathHelper.cs
- TreeViewImageKeyConverter.cs
- HttpApplicationFactory.cs
- CheckBoxList.cs
- HierarchicalDataSourceControl.cs
- ObjectKeyFrameCollection.cs
- PropertyTab.cs
- JsonFormatReaderGenerator.cs
- CodeAttributeDeclarationCollection.cs
- PropertyDescriptorComparer.cs
- MetadataSource.cs
- FrameworkElement.cs
- LambdaCompiler.Generated.cs
- MenuRendererClassic.cs
- OutputCacheSection.cs
- GatewayDefinition.cs
- ScriptIgnoreAttribute.cs
- XmlNodeReader.cs
- XmlNullResolver.cs
- ImageSource.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HttpCookie.cs
- FixedSOMTableRow.cs
- AnnotationObservableCollection.cs
- NameNode.cs
- ManifestResourceInfo.cs
- ItemDragEvent.cs
- DiscardableAttribute.cs
- XmlRawWriterWrapper.cs
- Pool.cs
- PagePropertiesChangingEventArgs.cs
- AutoFocusStyle.xaml.cs
- CharConverter.cs
- BypassElement.cs
- XmlCharType.cs
- initElementDictionary.cs
- HttpProfileBase.cs
- InputElement.cs
- BookmarkManager.cs
- SafeNativeMethods.cs
- MenuCommandService.cs
- TraceXPathNavigator.cs
- HttpPostedFile.cs
- MdiWindowListStrip.cs
- XComponentModel.cs
- filewebrequest.cs
- HttpCacheVaryByContentEncodings.cs
- DateTimeUtil.cs
- AvTrace.cs
- CustomPopupPlacement.cs
- MouseGestureConverter.cs
- XamlParser.cs
- AssociationEndMember.cs