Skip to content

foreground is incorrect when the button is pressed #1734

Description

@maihcx

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

Video_1680.mp4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions