Skip to content

Commit 22c4dc1

Browse files
authored
Merge pull request #1080 from jonmotos/patch-1
Update themes.md documentation for 3.x namespace and type name changes
2 parents ef742b5 + 5b92450 commit 22c4dc1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/documentation/themes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Or, you can add **WPF UI** resources manually.
3737
If you want to change the theme while the application is running, you can call the static `Apply` method of the `Theme` class.
3838

3939
```csharp
40-
Wpf.Ui.Appearance.Theme.Apply(
41-
Wpf.Ui.Appearance.ThemeType.Light, // Theme type
42-
Wpf.Ui.Appearance.BackgroundType.Mica, // Background type
43-
true // Whether to change accents automatically
40+
Wpf.Ui.Appearance.ApplicationThemeManager.Apply(
41+
Wpf.Ui.Appearance.ApplicationTheme.Light, // Theme type
42+
Wpf.Ui.Controls.WindowBackdropType.Mica, // Background type
43+
true // Whether to change accents automatically
4444
);
4545
```
4646

@@ -59,10 +59,10 @@ public partial class MainWindow : Window
5959

6060
Loaded += (sender, args) =>
6161
{
62-
Wpf.Ui.Appearance.Watcher.Watch(
63-
this, // Window class
64-
Wpf.Ui.Appearance.BackgroundType.Mica, // Background type
65-
true // Whether to change accents automatically
62+
Wpf.Ui.Appearance.SystemThemeWatcher.Watch(
63+
this, // Window class
64+
Wpf.Ui.Controls.WindowBackdropType.Mica, // Background type
65+
true // Whether to change accents automatically
6666
);
6767
};
6868
}

0 commit comments

Comments
 (0)