To pragmatically set the focus on TabItems in WPF or Silverlight it’s not enough to set “IsSelected” to true and call “Focus()” on the specific TabItem. In order to get to the desired result, you have to do the following steps:
- Set “tabControl.SelectedItem = tabItem” on the TabControl.
- Call “UpdateLayout()” on the TabControl.
If and only if you do this on the TabControl, the TabItem (and therefor the content) will get the focus.