Files
BrightSharp.Toolkit/docs/help/apply-themes.md
Vitaliy Semianiaka 55d7370d45 Update apply-themes.md
2017-02-18 00:28:19 +03:00

498 B

Apply themes with App.xaml

App.xaml

<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/brightsharp;component/generic.xaml" />
        
    </ResourceDictionary.MergedDictionaries>

</ResourceDictionary>

Change themes by ThemeManager

Change by static property

    ThemeManager.CurrentTheme = ColorThemes.Classic;

NOTE

It is recommended use Background="{DynamicResource WindowBackgroundBrush}" for Window markup