Skip to content

CheckBox and RadioButton ignore explicit BackColor values in VisualStylesMode.Net11 #14859

Description

@Amy-Li03

.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.

Image Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11
  2. Enable VisualStylesMode to Net11
  3. Add a CheckBox and a RadioButton to the form.
  4. Set their BackColor property
  5. Run the application

Metadata

Metadata

Assignees

Labels

NewApi-Net11Tracks issues for public APIs targeted for .NET 11.untriagedThe team needs to look at this issue in the next triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions