Show / Hide Table of Contents

Class StyleManager

Manages style of elements.

Inheritance
System.Object
StyleManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking.dll
Syntax
public static class StyleManager
Remarks

This class provides DevZest.Windows.StyleManager.IsAutoMerge attached property to automatically merge the default style change. The following XAML defines a style based on the dynamic default style:

<Style TargetType={x:Type MenuItem}>
  ...
  <Setter Property="StyleManager.IsAutoMerge" Value="True" />
  ...
</Style>

This is equivalent to the following unsupported XAML (only static resource is allowed on System.Windows.Style.BasedOn):

<Style BasedOn="{DynamicResource {x:Type MenuItem}}">
  ...
</Style>

Fields

Name Description
IsAutoMergeProperty

Identifies the DevZest.Windows.StyleManager.IsAutoMerge attached property.

Methods

Name Description
GetIsAutoMerge(DependencyObject)

Gets the value of DevZest.Windows.StyleManager.IsAutoMerge attached property from a given System.Windows.DependencyObject.

SetIsAutoMerge(DependencyObject, Boolean)

Sets the value of DevZest.Windows.StyleManager.IsAutoMerge attached property to a given System.Windows.DependencyObject.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest