Skip to content

BackgroundImage is not rendered for Button and CheckBox when VisualStylesMode is set to Net11 #14753

Closed

Description

@Amy-Li03

.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 Form's VisualStylesMode is configured as VisualStylesMode.Net11, the BackgroundImage assigned to Button and CheckBox controls is ignored and never rendered.
This behavior differs from expectations because the BackgroundImage property remains available and populated, yet its content is not displayed.

Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11 Preview.
  2. Configure Form's VisualStylesMode = VisualStylesMode.Net11
  3. Add a Button or CheckBox to a form.
  4. Assign a bitmap to the BackgroundImage property.
  5. Run the application.

Activity

  1. added
    untriaged
    on Jul 17, 2026
  2. added 6 commits that reference this issue on Jul 19, 2026
    8ee53bc
    d88edc6
    fec18df
    1f0194e
    80b8f19
    f45c549
  3. Amy-Li03 commented on Jul 20, 2026

    @Amy-Li03
    ContributorAuthor

    @KlausLoeffelmann tested the fix in .NET 11/Integration-3, the BackgroundImage for button is rendered correctly now, but for CheckBox, it does not paint its full background when using VisualStylesMode.Net11

    Image

    Classic mode works well:
    Image

  4. added
    🪲 bug
    NewApi-Net11
    and removed
    untriaged
    on Jul 20, 2026
  5. changed the title [-][VisualStylesMode: Net11] BackgroundImage is not rendered for Button and CheckBox when VisualStylesMode is set to Net11[/-] [+]BackgroundImage is not rendered for Button and CheckBox when VisualStylesMode is set to Net11[/+] on Jul 21, 2026
  6. added
    rendering-or-artifacts-issues
    on Jul 21, 2026
  7. added 4 commits that reference this issue on Jul 23, 2026
    ee0b4d2
    8d002d9
    4eb540c
    dcd63a2
  8. added a commit that references this issue on Jul 24, 2026
    f34cefe
  9. added a commit that references this issue on Jul 24, 2026
    8554492
  10. Olina-Zhang commented on Aug 3, 2026

    @Olina-Zhang
    Member

    Tested in .NET 11 Preview 7 Test Pass build: 11.0.100-preview.7.26381.103, it was fixed: setting Button/CheckBox BackgroundImage successfully.

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

Metadata

Metadata

Labels

🪲 bugNewApi-Net11rendering-or-artifacts-issues

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions