Manages style of elements.

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll)

Syntax

C#
public static class StyleManager
Visual Basic
Public NotInheritable Class StyleManager

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:

CopyXAML
<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):

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

Inheritance Hierarchy

System..::..Object
  DevZest.Windows..::..StyleManager

See Also