The Tab browsing mechanism is already embedded in the library; you don't have to do anything to engage it. [EDIT] If, by some reason, this mechanism does not work in your code, it would mean you screw up it somehow. If this is the case, you would need to create a complete but very short code sample to reproduce the problem and show it using "Improve question". [END EDIT]
If you need to do focusing by your code by other means, it's good to learn how focusing works in WPF. It is not so trivial as you might think:
http://msdn.microsoft.com/en-us/library/aa969768.aspx[
^].
The WPF advance in this field is that it preserves the
logical focus as opposed to the "real"
keyboard focus of an element.
Nevertheless, in many cases, simple
System.Windows.UIElement.Focus
could suffice:
http://msdn.microsoft.com/en-us/library/system.windows.uielement.focus.aspx[
^].
You only need to understand different notions of the focus and what functionality is involved with them.
Even though the documentation says it only "attempts to set focus to this element", you can easily foresee the situations where is would be always successful. If the focus was not forced to change, you will be notified through the Boolean return value.
—SA