mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
Ok, Just Do It!
This commit is contained in:
22
docs/help/apply-themes.md
Normal file
22
docs/help/apply-themes.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user