2017-02-18 00:15:59 +03:00
|
|
|
# Apply themes with App.xaml
|
|
|
|
|
|
|
|
|
|
`App.xaml`
|
|
|
|
|
```xml
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
|
<ResourceDictionary Source="/brightsharp;component/generic.xaml" />
|
|
|
|
|
|
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
```
|
|
|
|
|
|
2017-02-18 00:28:19 +03:00
|
|
|
# Change themes by ThemeManager
|
2017-02-18 00:15:59 +03:00
|
|
|
|
2017-02-18 00:28:19 +03:00
|
|
|
Change by static property
|
2017-02-18 00:15:59 +03:00
|
|
|
```c#
|
|
|
|
|
ThemeManager.CurrentTheme = ColorThemes.Classic;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## NOTE
|
|
|
|
|
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup
|