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
- SQLInt32.cs
- DesignParameter.cs
- StrokeCollectionDefaultValueFactory.cs
- FloaterParagraph.cs
- XmlnsDefinitionAttribute.cs
- RSACryptoServiceProvider.cs
- RefreshPropertiesAttribute.cs
- RewritingPass.cs
- RegistryKey.cs
- TableSectionStyle.cs
- TemplateControlParser.cs
- AsyncContentLoadedEventArgs.cs
- MetadataUtilsSmi.cs
- MulticastNotSupportedException.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlDataDocument.cs
- Thread.cs
- KeyFrames.cs
- IdentityReference.cs
- XmlAttributeCollection.cs
- CodeGenerator.cs
- PriorityQueue.cs
- SectionVisual.cs
- XmlUtilWriter.cs
- filewebresponse.cs
- InvalidAsynchronousStateException.cs
- HMACMD5.cs
- InkSerializer.cs
- BufferedStream2.cs
- XmlUtf8RawTextWriter.cs
- RawKeyboardInputReport.cs
- CornerRadiusConverter.cs
- XmlSchemaCollection.cs
- HtmlControlPersistable.cs
- WindowAutomationPeer.cs
- ObfuscateAssemblyAttribute.cs
- SoapEnumAttribute.cs
- DateBoldEvent.cs
- NameSpaceEvent.cs
- CodeEntryPointMethod.cs
- NavigationExpr.cs
- DataSourceGroupCollection.cs
- TreeNodeCollectionEditorDialog.cs
- EntityDataSourceUtil.cs
- MembershipPasswordException.cs
- AstTree.cs
- PersonalizablePropertyEntry.cs
- SurrogateEncoder.cs
- WebServiceClientProxyGenerator.cs
- TriggerCollection.cs
- ClientSponsor.cs
- PathFigureCollection.cs
- ResourceProviderFactory.cs
- WebHttpEndpointElement.cs
- ContractUtils.cs
- SmtpDigestAuthenticationModule.cs
- InternalBufferOverflowException.cs
- PathSegmentCollection.cs
- SecureStringHasher.cs
- CompilerScopeManager.cs
- FlowDocumentReader.cs
- InkCanvasSelection.cs
- X500Name.cs
- DelegateHelpers.Generated.cs
- SafeEventLogWriteHandle.cs
- DataComponentGenerator.cs
- DefaultValidator.cs
- MailWriter.cs
- Part.cs
- SelectionEditingBehavior.cs
- RequiredFieldValidator.cs
- EnumerableRowCollectionExtensions.cs
- AccessorTable.cs
- Decoder.cs
- ColorConvertedBitmap.cs
- ViewLoader.cs
- OracleTimeSpan.cs
- DriveNotFoundException.cs
- _FtpDataStream.cs
- TypeConverterHelper.cs
- EmptyImpersonationContext.cs
- AppearanceEditorPart.cs
- FirstQueryOperator.cs
- Pen.cs
- XmlSignatureManifest.cs
- RoleGroupCollection.cs
- ValidationHelpers.cs
- LookupNode.cs
- BaseUriHelper.cs
- WebConfigurationHostFileChange.cs
- UTF8Encoding.cs
- DocumentPropertiesDialog.cs
- ScriptRef.cs
- ChangePassword.cs
- ChangePassword.cs
- CustomWebEventKey.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SqlRecordBuffer.cs
- MaskDescriptors.cs
- RequestCachingSection.cs