mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Prevent WPF control from dying in design time.
This commit is contained in:
@@ -465,7 +465,7 @@ namespace CefSharp.Wpf
|
||||
|
||||
private void CreateOffscreenBrowserWhenActualSizeChanged()
|
||||
{
|
||||
if (browserCreated)
|
||||
if (browserCreated || System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user