You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CheckBox and RadioButton ToggleSwitch render the thumb in black instead of white when checked in non-Dark Mode #15125
NewApi-Net11Tracks issues for public APIs targeted for .NET 11.waiting-on-teamThis work item needs to be discussed with team or is waiting on team action in order to proceed
.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.
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.
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?
NewApi-Net11Tracks issues for public APIs targeted for .NET 11.waiting-on-teamThis work item needs to be discussed with team or is waiting on team action in order to proceed
Activity
LeafShi1 commentedon Sep 24, 2026
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.
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?
Olina-Zhang commentedon Nov 12, 2026
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:
Dark mode: