Skip to content

Checkbox foreground property set differently between checked and unchecked states #10372

@HEIC-to-JPEG-Dev

Description

@HEIC-to-JPEG-Dev

Describe the bug

On a checkbox, if you set the Foreground property to "Red". The UI is correct while the CheckBox is in the unChecked state. It handles mouse over/exit operations correctly.
When the checkBox state changes to Checked, the Foreground reverts back to default. Red is no longer displayed. Unchecking reverts back to red.

Steps to reproduce the bug

Expected behavior

Red should be sustained color in all modes.

Screenshots

Image

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingteam-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions