Skip to content

CheckBox/RadioButton: ToggleSwitch overlaps text when RightToLeft is enabled and AutoSize is false #14808

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 as a ToggleSwitch, the ToggleSwitch glyph overlaps the text when:

  • RightToLeft = Yes
  • AutoSize = false
Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11
  2. Set Application.VisualStylesMode = VisualStylesMode.Net11;
  3. Add a CheckBox or RadioButton with a long text.
    Configure:
  • Appearance = Appearance.ToggleSwitch;
  • RightToLeft = RightToLeft.Yes;
  • AutoSize = false;
  1. 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