dotnet / dotnet/winforms

[DpiUnaware] The sub item CheckBox cannot be scaled well in GroupBox control on 300% system DPI

Open
#6,228 0 comments 0 reactions 0 assignees View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version:
.NET SDK 7.0.100-alpha.1.21568.2

* Have you experienced this same bug with .NET Framework?:
No

**Problem description:**

The sub item CheckBox cannot be scaled well in GroupBox control on 300% system DPI.
![Actual](https://user-images.githubusercontent.com/45864985/143397205-4f552229-5680-45f5-bd28-186b2e40a72d.png)

**Expected behavior:**

The sub item CheckBox should be scaled well in GroupBox control on 300% system DPI.
![Expected](https://user-images.githubusercontent.com/45864985/143397221-2e0a7dfe-33e8-4607-b9c8-826e5de0eeeb.png)

**Minimal repro:**

1. Open the [TestApp.zip](https://github.com/dotnet/winforms/files/7600959/TestApp.zip) on 300% DPI.
2. Change the ApplicationHighDpiMode to DpiUnAware in .csproj file and set AutoScaleMode = Dpi for Form1 designer.
3. Run it.
![ReproSteps](https://user-images.githubusercontent.com/45864985/143397183-78706cfe-3d61-4f43-af7b-50b2fbba9f0a.gif)

**More info:**

1. This issue cannot repro under DpiUnAware & AutoScaleMode = Font or None.
2. This issue doesn't reproduce under PerMonitorV2 and SystemAware modes.
3. This issue doesn't reproduce in other container controls.

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.