views:

334

answers:

0

When a TabItem gains focus, I want to intelligently assign Focus to controls inside of it. Basically I just need to hit the Tab key upon the TabItem's GotFocus event. But I can't find any way to do that. Neither the FocusManager or Keyboard classes provides anything. I just want a method I can call that "does whatever Silverlight does when you click the Tab key".

There are lots of ways I can think of to get around the problem. I could keep track of what the "first control" is within each tab, and jump to it. I could scan the VisualStateManager and figure it out that way. But why re-make the wheel? I don't need any new functionality, the functionality is already there, I just need to access it. The last thing I want to do is maintain my own custom "figure out what the next TabStop is" code.