dotnet / dotnet/wpf

NoResize window shrinks when moving to different DPI monitor with Shift+Win+Arrow

Open
#839 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Copied from VSO ID: 823555

* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

**Steps to reproduce:**

1. Set up two monitors, one with 100% DPI and one with 200% DPI.
2. Create a WPF app whose main window has ResizeMode=NoResize and WindowStyle=None
3. Start the app on the 200% monitor
4. Move the window to the 100% monitor using the Shift+Win+Arrow shortcut. If necessary, move it back and forth between the monitors a few times that way.

Result: the window shrinks (in logical dimensions). If there is content, the content will be clipped.

I think this is the root cause of the issue below:

Related to VS Feedback:
https://developercommunity.visualstudio.com/content/problem/482169/start-screen-shrinks-in-multi-dpi-scenarios-become.html

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.