title: WPF TabControl / File open needs to locate child WindowsFormsHost
body: <p>I'm trying to write a text editor in WPF and I have a problem trying to locate the correct instance of an editor within a <code>TabControl</code> in response to a File -> Open action.</p>
  
  <p>Tab items are added programatically and contain a <code>WindowsFormsHost</code> instance which in turn allows each tab to display an editor provided by the ScintillaNet WinForms component.</p>
  
  <p>When a tab is selected and a user selects File -> Open, I need to locate the correct WindowsFormsHost instance based on the tab selection so I can load the file into the correct Scintilla instance.</p>
  
  <p>Previously, I'd done this in WinForms simply by doing:</p>
  
  <pre><code>tabControl.TabPages[tabControl.SelectedIndex].Controls.Find("Scintilla")
  </code></pre>
  
  <p>How does this work in WPF?</p>