dotnet / dotnet/winforms

[HDPI] CheckBox doesn't respect system font scaling

Open
#4,846 0 comments 0 reactions 0 assignees View on GitHub
area-HDPI-SA
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version: all up to latest (5.0.5)

* Have you experienced this same bug with .NET Framework?: No because .NET Framework doesn't respect system font scaling at all.

**Problem description:**
Probably all CheckBox stuff (`CheckBox`, `TreeView` with checkboxes, `CheckBoxRenderer` e.t.c.) doesn't respect system font scaling for check box image:
![Snipaste_2021-04-25_17-33-44](https://user-images.githubusercontent.com/17767561/115997795-1dc1bb80-a5ed-11eb-9ef8-c478ac0ecb7d.png)
P.s. TreeView plus/minus signs also not increasing.

**Expected behavior:**
I think image must scale with Font too (especially because of font scaling is used by default). It's just pointless to enlarge the text, but not enlarge the checkbox image. But if it's by design, feel free to close this issue.

**Minimal repro:**
Any WinForm app with `HighDpiMode.SystemAware` + `CheckBox` and increased System font.

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.