CefSharp ChromiumWebBrowser - not displayed/rendered
<p>I have a simple application, a <code>Grid</code> with a <code>ChromiumWebBrowser</code> inside. When I create the <code>ChromiumWebBrowser</code> in XAML, it works. But when I create it from the code-behind and add it to the grid, it doesn't show up - I just get the Grid's black background.</p>

<pre><code>&lt;!--This works--&gt;
&lt;Grid Name="gRight" Background="Black"&gt;
    &lt;cefSharp:ChromiumWebBrowser x:Name="cefBrowser" Margin="0,20,0,0"  Address="http://www.google.com" /&gt;
&lt;/Grid&gt;
</code></pre>

<p>The code that doesn't work :</p>

<pre><code>public Window1()
{
     InitializeComponent();
     bool status =CefSharp.Cef.Initialize();
     ChromiumWebBrowser browse = new ChromiumWebBrowser();
     browse.Load("http://www.google.com");
     browse.Width = 500;
     browse.Height = 500;
     browse.Margin = new Thickness(0,20,0,0);
     gRight.Children.Add(browse); // adding to Grid, it doesn't show up    
}
</code></pre>

<p>Does anyone know why adding from the code-behind doesn't work in this case ?</p>