I am working on a UserControl with some other controls inside. I want to set a keyboard shortcut (like Ctrl+Tab) to change the focus to the next control on the window, ignoring all the other controls that are inside the UserControl.
I'm trying to access the parent property like this:
FrameworkElement element = (FrameworkElement)this.Parent;
And then make a TraversalRequest from it, or something like this. I'm not sure what to do.
So, what is the correct way to move the focus to the next control on the screen, from the inside of the UserControl?