WinForms - Update app.manifest to PerMonitorV2
- Update app.manifest - Update comment in Program.cs
This commit is contained in:
parent
1d99718498
commit
ed5adfc787
@ -19,7 +19,10 @@ namespace CefSharp.MinimalExample.WinForms
|
||||
CefRuntime.SubscribeAnyCpuAssemblyResolver();
|
||||
#endif
|
||||
|
||||
//For Windows 7 and above, best to include relevant app.manifest entries as well
|
||||
// Programmatically enable DPI Aweness
|
||||
// Can also be done via app.manifest or app.config
|
||||
// https://github.com/cefsharp/CefSharp/wiki/General-Usage#high-dpi-displayssupport
|
||||
// If set via app.manifest this call will have no effect.
|
||||
Cef.EnableHighDPISupport();
|
||||
|
||||
var settings = new CefSettings()
|
||||
|
@ -34,9 +34,15 @@
|
||||
</security>
|
||||
</trustInfo>
|
||||
|
||||
<!--
|
||||
Enable DPI Awareness.
|
||||
For those targeting .Net 4.7 or greater then configuring via app.config is recommended by Microsoft.
|
||||
https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8#configuring-your-windows-forms-app-for-high-dpi-support
|
||||
-->
|
||||
<asmv3:application>
|
||||
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
|
||||
<dpiAware>true/PM</dpiAware>
|
||||
<asmv3:windowsSettings>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||
</asmv3:windowsSettings>
|
||||
</asmv3:application>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user