dotnet / dotnet/winforms

[Multi-Monitor] The icon and dot-line of Treeview are not scaled well when DPIs differ

Open
#5,097 0 comments 0 reactions 0 assignees View on GitHub
:beetle: bug area-HDPI-PMv2
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version:
.NET 6.0.100-preview.6.21313.2 + private binaries build from main branch in dotnet/winforms repo.
[New.zip](https://github.com/dotnet/winforms/files/6653328/New.zip)

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

**Expected behavior:**
The icon and dot-line of Treeview are scaled well when DPIs differ

**Minimal repro:**
1. Set the primary screen as 100% DPI, and secondary screen 300% DPI.
2. Open the attached the application.
[Issue14.zip](https://github.com/dotnet/winforms/files/6653330/Issue14.zip)
3. Build & run the application.
4. Moving the form from 100% primary screen to 300% secondary screen.

**Actual Results:**
100% primary screen:
![image](https://user-images.githubusercontent.com/38325459/122003994-aa286900-cd68-11eb-83ac-1339ab730dc5.png)
Move to 300% secondary screen:
![image](https://user-images.githubusercontent.com/38325459/122004021-b3193a80-cd68-11eb-8b97-6941defd1dc2.png)

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.