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

23 lines
500 B
Markdown

# Apply themes with App.xaml
`App.xaml`
```xml
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/brightsharp;component/generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
```
# Apply themes by ThemeManager
Use enumeration at singleton
```c#
ThemeManager.CurrentTheme = ColorThemes.Classic;
```
## NOTE
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup