Skip to content

CheckBox/RadioButton: ToggleSwitch renders black background when BackColor is Transparent #14807

Closed

Description

@Olina-Zhang

.NET version

.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-4 branch of https://github.com/KlausLoeffelmann/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+?

Not support, new feature of #14792

Issue description

When a CheckBox or RadioButton is configured with:

  • Appearance = Appearance.ToggleSwitch
  • BackColor = Color.Transparent
  • Application.VisualStylesMode = VisualStylesMode.Net11

the control is rendered with an unexpected black rectangular background.

The ToggleSwitch glyph itself is painted correctly, but the control background is not rendered transparently as expected.

Image

Steps to reproduce

  1. Create a new WinForms application targeting .NET 11 Preview.
  2. Enable VisualStylesMode to Net11;
  3. Add a CheckBox or RadioButton to the form.
  4. Set the following properties:
  • Appearance = Appearance.ToggleSwitch
  • BackColor = Color.Transparent
  1. Run the application.

WinFormsApp179.zip

Activity

  1. added
    untriaged
    NewApi-Net11
    on Jul 23, 2026
  2. self-assigned this
    on Jul 27, 2026
  3. removed
    untriaged
    on Aug 5, 2026
  4. added this to the 11.0-rc1 milestone on Aug 13, 2026
  5. Zheng-Li01 commented on Aug 13, 2026

    @Zheng-Li01
    Member

    Verified the issue with .NET 11.0.100-rc.1.26411.119 build, the issue has been fixed that the ToggleSwitch renders well background when BackColor is Transparent for CheckBox/RadioButton control. see details as below screenshot.

    UpdateIssue.mp4
  6. Olina-Zhang commented on Aug 27, 2026

    @Olina-Zhang
    MemberAuthor

    Tested it in .NET 11 RC1 test pass build: 11.0.100-rc.1.26425.128, it has the same validation result as above.

  7. locked and limited conversation to collaborators on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NewApi-Net11

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions