I'd like to set focus to TabControl
's current selected TabItem
's content.
I'm binding items via ItemsSource
, so I don't have simple access to TabItem
s themselves;
I also cannot call Focus()
on TabControl
, because it focuses the TabControl
itself instead of its content (for this one I did a crude, but effective check - made a DispatcherTimer, which emitted current focused item once a second).
Effectively I want to achieve the same effect as clicking on currently selected tab's header. How can I do that (not doing that quick&dirty by simulating the click, of course)?