Files
BrightSharp.Toolkit/docs/help/apply-themes.md

36 lines
943 B
Markdown
Raw Normal View History

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;
```
2017-05-19 20:56:28 +03:00
# 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" />
```
2017-02-18 00:15:59 +03:00
## NOTE
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup