WPF Window (border and title bar) renders strangely with mixed scaling
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
I have the same problem and I change `PerMonitorV2` to `PerMonitor` and it works in my desktop pc, but when I probe it in my laptop with to monitors (with different DPI and scale) with `PerMonitor` does not work but it works with `PerMonitorV2`.
The two pc have the same Windows 11 version (22H2)
How do I fix to work in any pc with any windows?
This is my manifest field:
```
true/PM
PerMonitor
true
```
> See [Developing a Per-Monitor DPI-Aware WPF Application - Win32 apps | Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/hidpi/declaring-managed-apps-dpi-aware?WT.mc_id=WD-MVP-5003260)
This doc says its only for Windows 8.1, for >Windows 10 it redirect users to https://github.com/microsoft/WPF-Samples/blob/main/PerMonitorDPI/readme.md where it interestingly recommends to use `PerMonitor` and not `PerMonitorV2` + even more steps are required.
_Originally posted by @Symbai in https://github.com/dotnet/wpf/issues/6314#issuecomment-1079622983_
Contributor guide
Assessment
This issue has not been assessed yet.