* WPF - Add OnDpiChanged for NetCore builds

Automatically deals with DPI Change

Issue #3388
This commit is contained in:
Alex Maitland
2021-03-16 16:00:57 +10:00
parent 03446d4daf
commit e78e18fdb0
+10
View File
@@ -1758,6 +1758,16 @@ namespace CefSharp.Wpf
}
}
#if NETCOREAPP
/// <inheritdoc/>
protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
{
NotifyDpiChange((float)newDpi.DpiScaleX);
base.OnDpiChanged(oldDpi, newDpi);
}
#endif
private void OnWindowLocationChanged(object sender, EventArgs e)
{
//We maintain a manual reference to the controls screen location