I've been reading up on how to implement CEF with Winforms and have been able to reproduce inplementing it on my own using Forms. What I need to do though is instead of using the From class and setting its content to the CEF browser, I want to use System.Window and have it load the CEF browser. It seems like getting it to show in the same manner does not work for me
Example of it working
CefSharp.WinForms.ChromiumWebBrowser cBrowser = new CefSharp.WinForms.ChromiumWebBrowser("https://www.google.com");
Form form = new Form();
form.Controls.Add(cBrowser);
form.Show();
What I want to do is this
System.Window window = new System.Window();
CefSharp.WinForms.ChromiumWebBrowser cBrowser = new CefSharp.WinForms.ChromiumWebBrowser("https://www.google.com");
window.Content = cBrowser;
window.Show();
But using the Window class does not show the browser at all. Any ideas as to why?