[Bug] After 4.2.1, ui:Button foreground error on pressed
Open
Nobody has claimed this yet.
bug
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
After v4.2.1, ui:Button foreground error on pressed.
To Reproduce
<ui:Button Margin="8,0,0,0" Content="Not good" />
<Button Margin="8,0,0,0" Content="OK" />
Expected behavior
ui:Button foreground should remain white when pressed in dark mode.
Screenshots
Normal:
Pressed:
OS version
win11
.NET version
net10.0-windows
WPF-UI NuGet version
4.2.1, 4.3.0
Additional context
No response
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 by reproducing the ui:Button example in a WPF application on Windows 11 with dark mode enabled, comparing versions 4.2.1 and 4.3.0. Trace the button's pressed-state appearance and verify that its foreground remains white when pressed, matching the expected behavior against the native Button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100