title: WPF WindowsAPICodePack ExplorerBrowser stops tabbing
body: <p>I've searched in as many ways as I can think to search and I haven't seen anyone mention this issue. Maybe I'm doing it wrong?</p>
  
  <p>If I place an ExplorerBrowser control from the Windows API code pack in a WPF window and call Navigate() then tabbing through controls does not work after the the navigation is done. The only way to correct this is to actually click inside the browser control. Commenting out the Navigate call also stops it from happening but leaves a useless control.</p>
  
  <p>The simplest use of the control demonstrates the issue.</p>
  
  <pre><code>&lt;Window x:Class="TestApp.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:WindowsPresentationFoundation="clr-namespace:Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation;assembly=Microsoft.WindowsAPICodePack.Shell"
      Title="MainWindow" Height="600" Width="800"&gt;
  &lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="*"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="*"/&gt;
          &lt;ColumnDefinition Width="*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;TextBox Name="box1" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="10,25,10,0" TabIndex="100"/&gt;
      &lt;TextBox Name="box2" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="10,65,10,0" TabIndex="101"/&gt;
      &lt;TextBox Name="box3" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="10,105,10,0" TabIndex="102"/&gt;
      &lt;TextBox Name="box4" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="10,145,10,0" TabIndex="103"/&gt;
      &lt;WindowsPresentationFoundation:ExplorerBrowser Grid.Column="1" Grid.Row="0" Name="aBrowser" Margin="5,2,5,5" TabIndex="200"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>And</p>
  
  <pre><code>using Microsoft.WindowsAPICodePack.Shell;
  using System;
  using System.Windows;
  
  namespace TestApp
  {
      public partial class MainWindow : Window
      {
          public MainWindow()
          {
              InitializeComponent();
  
              string strPath = "C:\\test\\";
              ShellObject folder = ShellObject.FromParsingName(strPath);
              aBrowser.ExplorerBrowserControl.Navigate(folder);            
          }
      }
  }
  </code></pre>
  
  <p>Compile and launch, tabbing does not work. Click inside the browser control and it starts working again.</p>
  
  <p>The problem only occurs when Navigate() completes. You can see this by placing the browser control inside a tab control.</p>
  
  <pre><code>&lt;TabControl Grid.Column="1"&gt;
      &lt;TabItem/&gt;
      &lt;TabItem&gt;
          &lt;WindowsPresentationFoundation:ExplorerBrowser Grid.Column="1" Grid.Row="0" Name="aBrowser" Margin="5,2,5,5" TabIndex="200"/&gt;
      &lt;/TabItem&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>Add to MainWindow()</p>
  
  <pre><code>aBrowser.NavigationLog.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(FileNavComplete);
  </code></pre>
  
  <p>A function to handle it</p>
  
  <pre><code>public void FileNavComplete(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
  { MessageBox.Show("Navigation complete"); }
  </code></pre>
  
  <p>Now when I compile and launch tabbing works until I click on the tab to bring the control to the foreground. The message box pops up, showing that Navigate() doesn't actually fire until the control is visible, and now tabbing no longer works unless I click in the control.</p>
  
  <p>This is true for other windows in the project. If I were to open a dialog containing the control, let it Navigate, then close the window without clicking on the control.. tabbing is now broken for the entire application.</p>
  
  <p>Any suggestions for either what to change or way to work around the issue would be awesome. Anything that's less hacky than moving the mouse cursor and clicking it programatically(yes, I tried and yes it works.).</p>