Files
BrightSharp.Toolkit/docs/help/apply-themes.md
2017-02-18 00:15:59 +03:00

500 B

Apply themes with App.xaml

App.xaml

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

</ResourceDictionary>

Apply themes by ThemeManager

Use enumeration at singleton

    ThemeManager.CurrentTheme = ColorThemes.Classic;

NOTE

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