title: GeckoFX browser - Control new window
body: <p>I'm working for the first time with <strong>GeckoFX</strong>.
  I searched everywhere but there are not answered questions about it.</p>
  
  <p>I'm trying to add a <code>DocumentCompleted</code> listener on a new window that pops up after clicking on href with blank target</p>
  
  <pre><code>&lt;a href='newWindow.html' target='_blank'&gt;Click here&lt;/a&gt;
  </code></pre>
  
  <p>GeckoFX creates a new window and pops it up, but I can't get control over the new window <code>WebBrowser</code> events.</p>
  
  <p>I tried doing something like</p>
  
  <pre><code>    private void browser_CreateWindow(object sender, Gecko.GeckoCreateWindowEventArgs e)
      {
          e.WebBrowser.DocumentCompleted += WebBrowser_DocumentCompleted;
      }
  
      private void WebBrowser_DocumentCompleted(object sender, GeckoDocumentCompletedEventArgs e)
      {
          MessageBox.Show("Document Completed!");
      }
  </code></pre>
  
  <p>but <code>e.WebBrowser</code> is always null.</p>