Skip to content

Dark Mode: Dropdown arrow in PropertyGrid appears larger #13766

@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+?

Yes, occurs after the PR change: #13747

Issue description

The dropdown arrow in the PropertyGrid control appears abnormally large when Dark Mode is enabled and the system is set to 100% DPI scaling. The issue does not occur in Classic Mode

Dark Mode on 100%DPI:

Image

Dark Mode on 250%DPI:

Image

Classic Mode on 100%DPI:

Image

Classic Mode on 250%DPI:

Image

Steps to reproduce

  1. Create Winforms .NET application with targeting .NET 10
  2. Add a PropertyGrid control 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. Observe any property with DropDownButton in PropertyGrid

Metadata

Metadata

Assignees

Labels

area-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