Skip to content

Commit

Permalink
Add DPI awareness in WPF app. (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
veler authored Jun 17, 2024
1 parent 23efb0b commit 8df10d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/dev/platforms/desktop/DevToys.Windows/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 8df10d8

Please sign in to comment.