[Multi-Monitor] Controls (with Anchor=Right) scaling incorrectly inside splitContainer
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
### .NET version
8.0.100-alpha.1.22559.18
### Did it work in .NET Framework?
No
### Did it work in any of the earlier releases of .NET Core or .NET 5+?
No. The fix scaling in SplitContainer controls for HDPI has only been introduced since .Net 8.0. The original issue: https://github.com/dotnet/winforms/issues/3168
### Issue description
**Current Behavior: Controls (with Anchor=Right) scaling incorrectly inside splitContainer on HDPI**
100% DPI primary screen to 300% DPI secondary screen:

https://user-images.githubusercontent.com/86937911/201048384-56d866ab-2645-4d57-9e73-5d77254aabff.mp4
300% DPI primary screen to 100% DPI secondary screen:

**Expected Behavior: Controls scaling correctly inside splitContainer on HDPI**

### Steps to reproduce
1. Set the primary screen as 100% DPI, and secondary screen 300% DPI.
2. Open the attached the application.
[testapp.zip](https://github.com/dotnet/winforms/files/9979341/testapp.zip)
3. Build & run the application.
4. Moving the form from 100% primary screen to 300% secondary screen.
Contributor guide
Assessment
This issue has not been assessed yet.