dotnet / dotnet/winforms

TreeView icons are not scaled on high DPI

Open
#13,194 2 comments 3 reactions 1 assignee Claimed by @LeafShi1 View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET 9.0.2

### Did it work in .NET Framework?

No

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

No. Issue https://github.com/dotnet/winforms/issues/6380 claims this was fixed in .NET 7. However, the issue was not fixed, and the same sample app from that issue continues to reproduce the issue.

### Issue description

Icons on TreeView nodes stay small when using high DPI.

### Steps to reproduce

Download the repro from issue #6380: [TreeViewImagesBug.zip](https://github.com/dotnet/winforms/files/7756112/TreeViewImagesBug.zip). Update the TFM to .NET 9 and run it.

Note that the tree view icons are the same size at 200% and 100% DPI. (The below screenshots should appear approximately to-scale.)

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.