.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+?
Yes, it works before #14753 fixed
Issue description
When Application.VisualStylesMode is set to VisualStylesMode.Net11, CheckBox and RadioButton no longer honor explicitly assigned BackColor values.
The issue reproduces both at design time and runtime. Even when a non-default color (for example, Color.Aqua) is assigned to the control, the background continues to be rendered using the parent container's background color.
This behavior differs from VisualStylesMode.Classic, where the assigned BackColor is rendered correctly.
Steps to reproduce
- Create a WinForms application targeting .NET 11
- Enable VisualStylesMode to Net11
- Add a CheckBox and a RadioButton to the form.
- Set their BackColor property
- Run the application
.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+?
Yes, it works before #14753 fixed
Issue description
When
Application.VisualStylesModeis set toVisualStylesMode.Net11, CheckBox and RadioButton no longer honor explicitly assignedBackColorvalues.The issue reproduces both at design time and runtime. Even when a non-default color (for example,
Color.Aqua) is assigned to the control, the background continues to be rendered using the parent container's background color.This behavior differs from
VisualStylesMode.Classic, where the assignedBackColoris rendered correctly.Steps to reproduce