foreground is incorrect when the button is pressed
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
Since PR #1680, the button's foreground value when pressed has been incorrect
To Reproduce
Create a button like this and click on it:
<ui:Button
ToolTip="Copy"
Padding="6,4"
Appearance="Primary"
Cursor="Hand"
Icon="{ui:SymbolIcon DocumentCopy16}" />
Expected behavior
I would like to revert PR #1680 or find another suitable solution to resolve this issue.
Screenshots
https://github.com/user-attachments/assets/40b596aa-9f3a-4c72-8613-a247ef7b6fec
OS version
Windows 11 Pro Insider Preview (25H2 Build 26300.8687)
.NET version
.NET 10
WPF-UI NuGet version
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
Inspect PR #1680 and the button's pressed-state behavior, then reproduce the issue with the provided ui:Button example on the listed WPF-UI and .NET versions. Done means the button's foreground displays the correct value while pressed, without regressing the existing appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100