diff --git a/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs b/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs index 21470fd..aff6bd0 100644 --- a/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs @@ -1508,7 +1508,8 @@ public IWebBrowser WebBrowser /// protected virtual IWindowInfo CreateBrowserWindowInfo(IntPtr handle) { - var windowInfo = new WindowInfo(); + var windowInfo = Core.ObjectFactory.CreateWindowInfo(); + windowInfo.RuntimeStyle = CefSharpSettings.RuntimeStyle ?? CefRuntimeStyle.Alloy; windowInfo.SetAsChild(handle); if (!ActivateBrowserOnCreation)