Skip to content

CheckBox and RadioButton ToggleSwitch render the thumb in black instead of white when checked in non-Dark Mode #15125

Closed

Description

@Olina-Zhang

.NET version

.NET 11 RC2 build + integration/11.0-RC2 branch of Winforms repo

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

NET11 new APIs

Issue description

When a CheckBox or RadioButton uses Appearance = ToggleSwitch, the ToggleSwitch thumb is rendered in black when the control is checked in non-Dark Mode.

Image

Not repro in Dark Mode

Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11.
  2. Set VisualStylesMode to VisualStylesMode.Net11.
  3. Add a CheckBox and a RadioButton to the Form.
  4. Set Appearance = ToggleSwitch for both controls.
  5. Run the application in non-Dark Mode.
  6. Check the CheckBox and RadioButton.
  7. Observe the color of the ToggleSwitch thumb.

Activity

  1. added
    untriaged
    NewApi-Net11
    on Sep 16, 2026
  2. self-assigned this
    on Sep 17, 2026
  3. removed
    untriaged
    on Sep 17, 2026
  4. LeafShi1 commented on Sep 24, 2026

    @LeafShi1
    Member

    I looked into this issue , and the current WinForms behavior seems intentional.

    One thing to clarify first: this behavior is not limited to non-Dark Mode. I can reproduce the white checked thumb in Dark Mode as well, depending on the AccentColor.

    Image

    Under Light Mode,windows uses a white thumb for the checked state, but the checked track color doesn't appear to be exactly the AccentColor. It seems to adjust the background color, which helps maintain sufficient contrast with the white thumb.

    WinForms, on the other hand, uses the AccentColor directly for the track and dynamically chooses black or white for the thumb based on which provides better contrast. Because of that, with some accent colors, a black checked thumb is expected from the current implementation in both Light and Dark Mode.

    So I'm not sure we should simply change the checked thumb to always be white to match Windows, since that could reduce contrast for some accent colors unless we also align the track color calculation with Windows.

    @KlausLoeffelmann Do you think we should consider the current WinForms behavior by design, or should we try to match the Windows ToggleSwitch color model more closely?

  5. added
    waiting-on-team
    on Sep 24, 2026
  6. Olina-Zhang commented on Nov 12, 2026

    @Olina-Zhang
    MemberAuthor

    Verified it in the latest .NET 12 build: 12.0.100-alpha.1.26560.109 + dlls built from Winforms repo, this issue was fixed:
    Classic mode:

    image

    Dark mode:

    image
  7. added this to the 12.0-preview1 milestone on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

NewApi-Net11waiting-on-team

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions