Skip to content

[HDPI] CheckListBox with multi-items is not scaled well #1522

@Olina-Zhang

Description

@Olina-Zhang
  • .NET Core Version: 3.0.100-preview8-013334
  • Have you experienced this same bug with .NET Framework?: Yes

Repro Steps:

  1. Set Windows DPI as 100%, then create a Winforms .Net Core application
  2. Add CheckListBox control to form designer, and add 4 lines items to this control, ensure all items are shown without scrollbar and no extra empty line --- use .Net framework app designer code to workaround since .net core designer is not fully supported so far
  3. In program.cs file, add one code line to support HDPI: SystemAware mode:
    Application.SetHighDpiMode(HighDpiMode.SystemAware);
  4. Build and run this application
  5. Set Windows DPI as 300%, and run this application again

Actual behavior:
On 300%DPI, CheckListBox is not scaled well, there has one extra empty line shown. This issue also repro in 150%, 250%DPI.
image

Expected behavior:
On 300%DPI, it should have 4 lines items shown on form designer in runtime, as same as 100%DPI
Here is the 100% screenshot
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions