mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
* WPF - Add OnDpiChanged for NetCore builds
Automatically deals with DPI Change Issue #3388
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user