lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.33k stars 707 forks source link

problem the theme background. #625

Open Cyp9715 opened 1 year ago

Cyp9715 commented 1 year ago

Describe the bug

There is a problem with the theme background.

To Reproduce

WPF_uiTest.zip

A very simple example that toggles between light and dark themes when a button is pressed. it doesn't work properly on my PC (Windows 11 22H2). (Background(window) stays black when clicked once) buttons and other elements change color just fine.

Wpf.Ui.Appearance.BackgroundType.Acrylic # Not work 
Wpf.Ui.Appearance.BackgroundType.Tabbed # Not work  
Wpf.Ui.Appearance.BackgroundType.Mica # Not work 
Wpf.Ui.Appearance.BackgroundType.UnKnown # WORK 
Wpf.Ui.Appearance.BackgroundType.None # WORK

Expected behavior

Just press the button, the theme background(window) doesn't change.

OS version

Windows 11 22H2

.NET version

.NET 7.0

WPF-UI NuGet version

2.0.3

Thank you.

Thanks for making a great library.

niels9001 commented 9 months ago

Could you verify if this issue still exists on the latest preview (preview.10)?

maihcx commented 8 months ago

i have a same issue with 3.0.0.preview.13, when i rollback to 3.0.0-preview.9 then it worked

Jay-o-Way commented 2 months ago

Hey @lepoco, @pomianowski - You have a couple of issues regarding the Mica effect and theme switching. Might be a few duplicates, but would you be so kind to look into these issues? I see a lot of comments in different repositories about them. Thanks!