File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,7 @@ private void OnHandleDestroyedInternal()
657
657
protected virtual IWindowInfo CreateBrowserWindowInfo ( IntPtr handle )
658
658
{
659
659
var windowInfo = Core . ObjectFactory . CreateWindowInfo ( ) ;
660
- windowInfo . RuntimeStyle = CefRuntimeStyle . Alloy ;
660
+ windowInfo . RuntimeStyle = CefSharpSettings . RuntimeStyle ?? CefRuntimeStyle . Alloy ;
661
661
windowInfo . SetAsChild ( handle ) ;
662
662
663
663
if ( ! ActivateBrowserOnCreation )
Original file line number Diff line number Diff line change @@ -81,5 +81,19 @@ static CefSharpSettings()
81
81
/// false.
82
82
/// </summary>
83
83
public static bool FocusedNodeChangedEnabled { get ; set ; }
84
+
85
+ /// <summary>
86
+ /// CefSharp.WinForms and CefSharp.Wpf.HwndHost ONLY!
87
+ /// The default is to create <see cref="CefRuntimeStyle.Alloy"/>
88
+ /// styled browsers, those wanting to use <see cref="CefRuntimeStyle.Chrome"/>
89
+ /// styled browsers can set this property.
90
+ /// </summary>
91
+ /// <remarks>
92
+ /// Sets the <see cref="IWindowInfo.RuntimeStyle"/> property.
93
+ /// You can customise this yourself on a per browser basis
94
+ /// by overriding the ChromiumWebBrowser.CreateBrowserWindowInfo
95
+ /// property.
96
+ /// </remarks>
97
+ public static CefRuntimeStyle ? RuntimeStyle { get ; set ; }
84
98
}
85
99
}
You can’t perform that action at this time.
0 commit comments