#1734·wpfui

foreground is incorrect when the button is pressed

Author: maihcxCreated Jun 15, 2026Updated Aug 12, 2026
Labelsbug:star: top bug

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