Skip to content

Dark Mode: Insufficient contrast for focusing items in CheckedListBox/PropertyGrid #13767

@Olina-Zhang

Description

@Olina-Zhang

.NET version

.NET 10 SDK build: 10.0.100-preview.7.25380.105

Did it work in .NET Framework?

Not tested/verified

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

Occurs when DarkMode feature involved

Issue description

When the application is in Dark Mode, the contrast of focusing items in CheckedListBox/PropertyGrid is insufficient.
This issue does not occur in Classic Mode.

Dark Mode:

Image Image

Classic Mode:

Image

Steps to reproduce

  1. Create Winforms .NET application with targeting .NET 10
  2. Add CheckedListBox and PropertyGrid controls in form designer
  3. Set the SelectedObject property to Form in propertyGrid1's properties
  4. Set app under Dark mode in program.cs file:
#pragma warning disable WFO5001
      Application.SetColorMode(SystemColorMode.Dark);
#pragma warning restore WFO5001
  1. Build and run project
  2. Click any items to focus in CheckedListBox/PropertyGrid to observe

Metadata

Metadata

Assignees

Labels

🚧 work in progressWork that is current in progressarea-DarkModeIssues relating to Dark Mode feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions