DevZest WPF Docking
StyleManager Class |
Manages style of elements.

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)

The StyleManager type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | GetIsAutoMerge | Gets the value of IsAutoMerge attached property
from a given DependencyObject. |
![]() ![]() | SetIsAutoMerge | Sets the value of IsAutoMerge attached property
to a given DependencyObject. |

Name | Description | |
---|---|---|
![]() ![]() | IsAutoMergeProperty | Identifies the IsAutoMerge attached property. |

Name | Description | |
---|---|---|
![]() | IsAutoMerge | Gets or sets the value that indicates whether merge the default style change automatically. |

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>
