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
- WebPartsSection.cs
- Polygon.cs
- BrowserTree.cs
- UserControlDocumentDesigner.cs
- MultipartContentParser.cs
- TextControl.cs
- SqlCachedBuffer.cs
- DesignConnectionCollection.cs
- Thickness.cs
- SourceItem.cs
- _UriTypeConverter.cs
- XPathNodeIterator.cs
- EventPropertyMap.cs
- GridEntry.cs
- DescendantBaseQuery.cs
- PathFigure.cs
- GradientBrush.cs
- ClientScriptManager.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlArrayAttribute.cs
- RemotingSurrogateSelector.cs
- MemberBinding.cs
- EmbeddedMailObject.cs
- DBDataPermission.cs
- WindowsRegion.cs
- RadioButtonRenderer.cs
- Console.cs
- EncoderExceptionFallback.cs
- DataError.cs
- SymLanguageVendor.cs
- DataControlFieldCollection.cs
- FontFaceLayoutInfo.cs
- SchemaTableOptionalColumn.cs
- XmlMtomReader.cs
- ItemChangedEventArgs.cs
- ListSortDescriptionCollection.cs
- ClientScriptManager.cs
- XComponentModel.cs
- AnnotationHelper.cs
- MarkupObject.cs
- SoapFault.cs
- StringDictionary.cs
- DataBoundLiteralControl.cs
- TextBoxAutoCompleteSourceConverter.cs
- TextRunCacheImp.cs
- ConnectAlgorithms.cs
- PageCatalogPart.cs
- AppDomain.cs
- DirectionalLight.cs
- WebEventTraceProvider.cs
- PersistNameAttribute.cs
- ScrollContentPresenter.cs
- Method.cs
- XmlConvert.cs
- HostedElements.cs
- RectangleConverter.cs
- SourceFileBuildProvider.cs
- ProfileWorkflowElement.cs
- DbModificationClause.cs
- IncomingWebResponseContext.cs
- Environment.cs
- PersonalizationDictionary.cs
- ReflectionUtil.cs
- Wildcard.cs
- TypedLocationWrapper.cs
- DataObjectFieldAttribute.cs
- PrintingPermission.cs
- EmptyStringExpandableObjectConverter.cs
- UshortList2.cs
- DropSource.cs
- GroupBoxAutomationPeer.cs
- DeflateEmulationStream.cs
- EditorBrowsableAttribute.cs
- TransformerInfoCollection.cs
- KnownBoxes.cs
- SchemaCollectionCompiler.cs
- ResourceDictionary.cs
- SqlUserDefinedTypeAttribute.cs
- ValueType.cs
- ScalarConstant.cs
- FormDocumentDesigner.cs
- nulltextcontainer.cs
- EntityCommandDefinition.cs
- CryptoApi.cs
- WindowsImpersonationContext.cs
- _ContextAwareResult.cs
- ErrorActivity.cs
- Bits.cs
- PageBuildProvider.cs
- StoreAnnotationsMap.cs
- ListViewInsertEventArgs.cs
- ResourcePermissionBaseEntry.cs
- DLinqTableProvider.cs
- _CacheStreams.cs
- ValidationSummaryDesigner.cs
- DataContractSet.cs
- HttpProfileBase.cs
- SmiRequestExecutor.cs
- EventProviderWriter.cs
- AssertSection.cs