mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
23 lines
500 B
Markdown
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
|