mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
WPF - Ensure ZoomLevelProperty is updated on UI thread when Visibility Changed
This commit is contained in:
@@ -2015,11 +2015,13 @@ namespace CefSharp.Wpf
|
||||
//properly
|
||||
var zoomLevel = await browser.GetHost().GetZoomLevelAsync();
|
||||
|
||||
if (!IsDisposed)
|
||||
UiThreadRunAsync(() =>
|
||||
{
|
||||
SetCurrentValue(ZoomLevelProperty, zoomLevel);
|
||||
}
|
||||
|
||||
if (!IsDisposed)
|
||||
{
|
||||
SetCurrentValue(ZoomLevelProperty, zoomLevel);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user