title: How to automatically move focus when selectedindex tab change in Tab control?
body: <p>I have <code>Tabcontrol</code> like this.</p>
  
  <pre><code>&lt;TabControl SelectedIndex="{Binding SelectedTab}" Name="TabControlAll"&gt;
          &lt;TabItem Header="Hal 1" Style="{StaticResource AzureTabItem}"&gt;
              &lt;kor:Halaman1 DataContext="{Binding RTDetail}"/&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Header="Hal 2" Style="{StaticResource AzureTabItem}" &gt;
              &lt;kor:Halaman2 /&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Header="Hal 3" Style="{StaticResource AzureTabItem}"&gt;
              &lt;kor:Halaman3/&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Header="Hal 4" Style="{StaticResource AzureTabItem}"&gt;
              &lt;kor:Halaman4/&gt;
          ...
  
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>And the view can be like this.
  <img src="https://i.stack.imgur.com/aoon9.png" alt="tabcontrol"></p>
  
  <p>In my <code>UserControl</code> I have so many controls like Hal 12 with many <code>Textboxes</code> inside <code>Usercontrol</code> Halaman so what I wanna ask How I can automatically change keyboard focus on change <code>Tabcontrol</code> index to first <code>Textbox</code> in selected tab?</p>
  
  <p>And I have to move also to next <code>TabControl</code> when focus of keyboard has reached the last control in that page.</p>
  
  <p>Any body can help?</p>