dotnet / dotnet/winforms

[DarkMode] Anchor attribute selection is unclear in Dark Mode

Open
#14,235 0 comments 0 reactions 1 assignee Claimed by @LeafShi1 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

.NET SDK 11.0.100-preview.1.26071.101

### Did it work in .NET Framework?

Yes

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

The issue also reproduced on .NET 9.0

### Issue description

In Dark Mode, we cannot distinguish which value of the **Anchor** attribute has been selected. It's hard to tell the difference between selected and unselected states.

**Dark Mode:**

Image

**Classic Mode:**

Image

### Steps to reproduce

1. Create a new Windows Forms .NET application
2. Add a PropertyGrid control to the form designer
3. Set the selectedObject property of propertyGrid1 as Form1
4. Set app under Dark mode in program.cs file:
`Application.SetColorMode(SystemColorMode.Dark);`
5. Run the application
6. Open the **Anchor** property and select the dropdown value

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.