Closed Ledgerbiggg closed 4 weeks ago
When the program starts, it is fine, but after switching themes, there is a repetition of the button in the upper right corner
My code is:
public class GlobalSettingsPageModel : BindableBase { private ApplicationTheme _currentApplicationTheme; public ApplicationTheme CurrentApplicationTheme { get => _currentApplicationTheme; set { SetProperty(ref _currentApplicationTheme, value); ApplyTheme(value); } } private void ApplyTheme(ApplicationTheme theme) { ApplicationThemeManager.Apply(theme); } public GlobalSettingsPageModel() { CurrentApplicationTheme = ApplicationTheme.Light; ApplyTheme(ApplicationTheme.Unknown); } }
At the beginning
After switching themes
no change
No response
win11
8
WPF-UI 4.0.0
Describe the bug
When the program starts, it is fine, but after switching themes, there is a repetition of the button in the upper right corner
My code is:
To Reproduce
At the beginning
After switching themes
Expected behavior
no change
Screenshots
No response
OS version
win11
.NET version
8
WPF-UI NuGet version
WPF-UI 4.0.0
Additional context
No response