Window issue with two monitors when "show window contents while dragging" is disabled
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
@Kryptos-FR commented on [Thu Nov 10 2016](https://github.com/microsoft/WPF-Samples/issues/37)
Hello,
The recent DPI support in WPF (starting with .Net 4.6.2) is really nice. It helped us improve a lot our application.
However when moving a window from a monitor to another with a different DPI, the rendering is broken when the system advanced option *show window contents while dragging* is disabled. This issue can be reproduced with the **PerMonitorDPI** samples of this repository.

Here are captures of what is happening:

*moving from a monitor with 100% scale to another monitor with 150% scale*

*moving from a monitor with 150% scale to another monitor with 100% scale*
Also note that this issue still happen in some cases even if the option *show window contents while dragging* is enabled. When using **Win+Arrows** keyboard shortcut to move the window to another monitor.
I tried to workaround it by forcing WPF to recalculate the layout or even with p/invoke some native Win32 API but it doesn't fix this.
Contributor guide
Assessment
This issue has not been assessed yet.