mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
Ver 2.0. Fixes and improvements.
This commit is contained in:
@@ -13,23 +13,22 @@
|
||||
|
||||
# Change themes by ThemeManager
|
||||
|
||||
Change by static property
|
||||
Change by `ThemeManager`
|
||||
```c#
|
||||
ThemeManager.CurrentTheme = ColorThemes.Classic;
|
||||
```
|
||||
|
||||
# Change themes by ResourceDictionary
|
||||
|
||||
Also you can change theme by adding resource dictionary after generic.xaml. Use one of them:
|
||||
As default we use Classic theme.
|
||||
You also 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
|
||||
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup
|
||||
You can use custom window style named `BrightSharpWindowStyle`.
|
||||
Also defined additional useful styles and extensions. For more info see Demo source code.
|
||||
Reference in New Issue
Block a user