problem the theme background.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
There is a problem with the theme background.
To Reproduce
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached WPF_uiTest.zip and reproduce the theme toggle on Windows 11 22H2 with .NET 7.0 and WPF-UI 2.0.3, checking the listed BackgroundType values. The report names no repository files or tests; done means the window background changes correctly when switching themes instead of remaining black.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100