dotnet / dotnet/winforms

[PerMonitorV2] [Multi-Monitor] Status strip progress item, DropDownButton icon, SplitButton icon are not scaled well when drop from 100% to 300%

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

Description

### .NET version

.NET 8.0.100-alpha.1.22565.7

### Did it work in .NET Framework?

Yes

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

No, it also repro on .NET 6.0 & 7.0.

### Issue description

[PerMonitorV2] [Multi-Monitor] Status strip progress item, DropDownButton icon, SplitButton icon are not scaled well when drop from 100% to 300%

### Steps to reproduce

Repro steps:

1. Launch VS instance on 100% primary monitor.
2. Create a winforms .net core project. Add `PerMonitorV2` in csproj file.
3. Drag and drop a Status strip control.
4. Add child controls Status Label, ProgressBar, DropDownButton, SplitButton
5. Build and run.
6. Move to 300% secondary monitor.
Or build and run, move to 300%
[WinFormsApp6.zip](https://github.com/dotnet/winforms/files/10073054/WinFormsApp6.zip)

**Current Behavior:**
Status strip progress item, DropDownButton icon, SplitButton icon are not scaled well

From 100% to 300%
![image](https://user-images.githubusercontent.com/96758262/203480528-876adde4-0a64-4407-843f-4c0630e7d152.png)

From 300% to 100%
![image](https://user-images.githubusercontent.com/96758262/203480680-b23a9671-0cf3-4eda-9c8c-ee1fbbdd72b6.png)

**Expected Result:**
Status strip progress item, DropDownButton icon, SplitButton icon are scaled well
![image](https://user-images.githubusercontent.com/96758262/203480761-774cc0c5-eb1f-4de6-ac06-ee2905484d63.png)

**More Info:**

1.This issue also repro on .NET7.0, .NET6.0 
2.This issue doesn't repro on .NET Framework
3.This issue also repro when drop from 300% to 100%
4.If created by 100% and run on 300%, this issue also repro
5.If created by 300% and run on 100%, this issue also repro

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.