dotnet / dotnet/winforms

Dark Mode: The BackgroundImage of Button is not displayed when the FlatStyle is Standard in DrakMode

Open
#13,823 1 comment 1 reaction 1 assignee Claimed by @LeafShi1 View on GitHub
:boom: regression-release area-DarkMode
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET SDK 10.0.100.rc.2.25419.103

### Did it work in .NET Framework?

No

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

The issue also can reproduce on .NET SDK 10.0 Prevview7. there has the known issue https://github.com/dotnet/winforms/issues/13720 to track. after the fix of PR https://github.com/dotnet/winforms/pull/13809, the issue has been fixed when the FlatStyle is Flat/Popup, but still reproduce when the FaltStyle is Standard

### Issue description

The BackgroundImage of Button is not displayed when the FlatStyle is Standard in DrakMode

**.NET 10.0 rc.2 & rc.1 results:**
Image

**.NET 10.0 preview7 results:**
Image

**.NET 9.0 results:**
Image

### Steps to reproduce

1. Create a winforms app, a form and a button with a background image.
2. Run the project in DarkMode
3. Observe results

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.