Update apply-themes.md

This commit is contained in:
Vitaliy Semianiaka
2017-05-19 20:56:28 +03:00
committed by GitHub
parent 776667490d
commit 7e8f79ac6f

View File

@@ -18,5 +18,18 @@ Change by static property
ThemeManager.CurrentTheme = ColorThemes.Classic; ThemeManager.CurrentTheme = ColorThemes.Classic;
``` ```
# Change themes by ResourceDictionary
Also you can change theme by adding resource dictionary after generic.xaml. Use one of them:
```xml
<ResourceDictionary Source="/brightsharp;component/style.devlab.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.blue.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.darkblue.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.silver.xaml" />
```
## NOTE ## NOTE
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup