You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BackgroundImage is not rendered for Button and CheckBox when VisualStylesMode is set to Net11 #14753
🪲 bugProduct bug (most likely)NewApi-Net11Tracks issues for public APIs targeted for .NET 11.rendering-or-artifacts-issuesControls paint themselves, sometimes "outside their borders." Primarily looks, not function.
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.
Steps to reproduce
Create a WinForms application targeting .NET 11 Preview.
@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
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
🪲 bugProduct bug (most likely)NewApi-Net11Tracks issues for public APIs targeted for .NET 11.rendering-or-artifacts-issuesControls paint themselves, sometimes "outside their borders." Primarily looks, not function.
Activity
Render BackgroundImage in modern button paths
Harden modern renderer surface handling
Render BackgroundImage in modern button paths
Harden modern renderer surface handling
Render BackgroundImage in modern button paths
Harden modern renderer surface handling
Amy-Li03 commentedon Jul 20, 2026
@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
Classic mode works well:

[-][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[/+]Render BackgroundImage in modern button paths
Harden modern renderer surface handling
Render BackgroundImage in modern button paths
Harden modern renderer surface handling
.NET 11: integrate application, rendering, and visual styles APIs (#1…
.NET 11: integrate application, rendering, and visual styles APIs (do…
Olina-Zhang commentedon Aug 3, 2026
Tested in .NET 11 Preview 7 Test Pass build: 11.0.100-preview.7.26381.103, it was fixed: setting Button/CheckBox BackgroundImage successfully.