Skip to content

Commit 37842f2

Browse files
committed
DPI aware
1 parent 8507cd0 commit 37842f2

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

OneMore/Commands/Search/SearchDialog.Designer.cs

Lines changed: 33 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneMore/app.manifest

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@
4848
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
4949
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
5050
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
51-
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
51+
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
52+
"true/pm" enables Per-Monitor DPI Awareness, which is ideal for WinForms. -->
5253
<!--
5354
<application xmlns="urn:schemas-microsoft-com:asm.v3">
5455
<windowsSettings>
55-
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
56+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
5657
</windowsSettings>
5758
</application>
5859
-->

0 commit comments

Comments
 (0)