dotnet / dotnet/winforms

[Dark Mode] The ListView cannot display the items when setting the Enable as false

Open
#14,210 0 comments 0 reactions 1 assignee Claimed by @SimonZhao888 View on GitHub
area-DarkMode
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

11.0.0-alpha.1.26062.101

### Did it work in .NET Framework?

Not tested/verified

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

No, the issue also can reproduce on .NET 10.0 & .NET 9.0

### Issue description

The ListView cannot display the items when setting the Enable as false in Dark mode

Image

### Steps to reproduce

1. Create a .NET Winforms project with a ListView control
2. Add some items for the listView1
3. Set the **Enable** as **false** for the listView1
4. Set app under Dark mode in program.cs file
` Application.SetColorMode(SystemColorMode.Dark);`
5. Build & run the application

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.