We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App.xaml <Application.Resources> <ResourceDictionary.MergedDictionaries> <ui:ThemesDictionary Theme="Dark" /> <ui:ControlsDictionary /> </ResourceDictionary.MergedDictionaries> </Application.Resources>
The constructor is called multiple times, causing the theme to reset.
how to avoid?
No response
win11
.net core 6
3.0.0
The text was updated successfully, but these errors were encountered:
do these in your MainWindow constructor, maybe?
MainWindow
public MainWindow(...) { SystemThemeWatcher.Watch(this); ApplicationThemeManager.Apply(ApplicationTheme.Dark); InitializeComponent(); }
Has to ask the theme watcher to manage the window, i guess.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
App.xaml
<Application.Resources>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Dark" />
<ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>
</Application.Resources>
To Reproduce
The constructor is called multiple times, causing the theme to reset.
Expected behavior
how to avoid?
Screenshots
No response
OS version
win11
.NET version
.net core 6
WPF-UI NuGet version
3.0.0
Additional context
No response
The text was updated successfully, but these errors were encountered: