Skip to content

Commit

Permalink
Use CefSharpSettings.RuntimeStyle by default and fallback to Alloy st…
Browse files Browse the repository at this point in the history
…yling

- Allow for configuring of the CEF RuntimeStyle globally.
- Consistent with WinForms
  • Loading branch information
amaitland committed Oct 2, 2024
1 parent 22982e6 commit 0be6802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,8 @@ public IWebBrowser WebBrowser
/// </example>
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)
Expand Down

0 comments on commit 0be6802

Please sign in to comment.