Skip to content

Commit 0be6802

Browse files
committed
Use CefSharpSettings.RuntimeStyle by default and fallback to Alloy styling
- Allow for configuring of the CEF RuntimeStyle globally. - Consistent with WinForms
1 parent 22982e6 commit 0be6802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,8 @@ public IWebBrowser WebBrowser
15081508
/// </example>
15091509
protected virtual IWindowInfo CreateBrowserWindowInfo(IntPtr handle)
15101510
{
1511-
var windowInfo = new WindowInfo();
1511+
var windowInfo = Core.ObjectFactory.CreateWindowInfo();
1512+
windowInfo.RuntimeStyle = CefSharpSettings.RuntimeStyle ?? CefRuntimeStyle.Alloy;
15121513
windowInfo.SetAsChild(handle);
15131514

15141515
if (!ActivateBrowserOnCreation)

0 commit comments

Comments
 (0)