Answer the question
In order to leave comments, you need to log in
WPF, how to disable scaling when changing monitor DPI?
Good afternoon,
tell me how to disable program scaling in WPF when the user changes the screen settings from 100% to 125%, for example.
The program is positioned on the screen by X,Y and width/height. They need to remain unchanged.
Those if on one monitor it is 100%, and on the other 125%, then the windows should be the same size if placed at the edges of the monitors.
Tried in different combinations:
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</dpiAware>
</windowsSettings>
[assembly: System.Windows.Media.DisableDpiAwareness]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question