.NET version
.NET 11.0.100-rc.1.26404.113
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, this issue also repro on .NET10
Issue description
When CheckBox.Appearance or RadioButton.Appearance is set to Appearance.Button,
custom BackColor and ForeColor values are ignored in Dark Mode.
The controls are rendered using the system button theme colors instead of the user-specified colors.
Regular Button controls honor the same color settings correctly.
Steps to reproduce
- Create a WinForms .NET application with RadioButton/CheckBox control
- Set RadioButton/CheckBox's
Appearanceis Button
- Custom RadioButton/CheckBox's BackColor and ForeColor
- Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
- Run the application to observe
.NET version
.NET 11.0.100-rc.1.26404.113
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, this issue also repro on .NET10
Issue description
When
CheckBox.AppearanceorRadioButton.Appearanceis set toAppearance.Button,custom
BackColorandForeColorvalues are ignored in Dark Mode.The controls are rendered using the system button theme colors instead of the user-specified colors.
Regular
Buttoncontrols honor the same color settings correctly.Steps to reproduce
Appearanceis Button