Skip to content

A Swiss Army knife for developers.

Add DPI awareness in WPF app. (#1202)

Etienne Baudoux8df10d81281e
diff --git a/src/app/dev/platforms/desktop/DevToys.Windows/app.manifest b/src/app/dev/platforms/desktop/DevToys.Windows/app.manifest
index 4e50017d2..b58964829 100644
--- a/src/app/dev/platforms/desktop/DevToys.Windows/app.manifest
+++ b/src/app/dev/platforms/desktop/DevToys.Windows/app.manifest
@@ -55,6 +55,14 @@
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
+
+ <!--
+ The combination of below two tags have the following effect:
+ 1) Per-Monitor for >= Windows 10 Anniversary Update
+ 2) System < Windows 10 Anniversary Update
+ -->
+ <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
+ <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>