StyleManager Class

DevZest WPF Docking

StyleManager Class
Manages style of elements.
Inheritance Hierarchy
SystemObject  DevZest.WindowsStyleManager

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)
Syntax
public static class StyleManager
Public NotInheritable Class StyleManager

The StyleManager type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetIsAutoMerge
Gets the value of IsAutoMerge attached property from a given DependencyObject.
Public methodStatic memberSetIsAutoMerge
Sets the value of IsAutoMerge attached property to a given DependencyObject.
Top
Fields
  NameDescription
Public fieldStatic memberIsAutoMergeProperty
Identifies the IsAutoMerge attached property.
Top
Attached Properties
  NameDescription
Public attached propertyIsAutoMerge
Gets or sets the value that indicates whether merge the default style change automatically.
Top
Remarks

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

XAML
<Style TargetType=x:TypeMenuItem}>
  ...
  <Setter Property="StyleManager.IsAutoMerge" Value="True" />
  ...
</Style>

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

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