Skip to content

[VisualStylesMode: Net11] Button text is clipped when receiving keyboard focus via Tab with VisualStyleMode = NET11 #14762

Description

@Olina-Zhang

.NET version

.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-2 branch of https://github.com/KlausLoeffelmann/winforms repo

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Not support, new feature

Issue description

When a Form's VisualStyleMode is set to NET11, the button text is rendered incorrectly when the button receives keyboard focus via the Tab key.

The issue only occurs when the focus is moved to the button using Tab. If the button is focused by mouse click, the text is rendered correctly.

Image
ButtonClippedIssue.mp4

Steps to reproduce

  1. Create a WinForms application targeting .NET 11.
  2. Set the Form's VisualStyleMode to NET11.
  3. Add a CheckBox and a Button to the Form with default size.
  4. Run the application.
  5. Press Tab to move keyboard focus to the Button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions