我需要我的(Winform)应用程序在Windows 7,Windows 8 / 8.1和Windows 10中适当地扩展到更高dpi。我很困惑我需要哪个选项。通过在下面添加以下内容,我已经使我的应用程序具有DPI感知能力:
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
以上评论说
"Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher DPIs."
但我不确定这适用于哪个平台?我已将AutoScaleMode更改为Dpi,并设计为96dpi。我知道这段代码使应用程序可以识别DPI,但我不确定哪些平台?