title: select tabItem programmatically in WPF
body: <p>I have different tabItems in a TabControl
  and each tabItem has some input fields.</p>
  
  <p>I am moving between the tabItems programmatically (like a wizard to move from the first to the next)</p>
  
  <p>I am using this code inside the "Next" button</p>
  
  <p>tabItem2.isSelected = true;</p>
  
  <p>my problem that when I move between the tabItems by clicking on them, the focus (keyboard focus) will move to the first textbox input.</p>
  
  <p>But programmatically with the previous code, the focus won't move to the first input textbox item inside the tabItem.</p>
  
  <p>Any idea?</p>