How can I prevent tabbing to a UserControl? How can I prevent tabbing to a UserControl? wpf wpf

How can I prevent tabbing to a UserControl?


You can bind IsTabStop on the child controls to IsTabStop on the UserControl.

That way, you only have to set it once.


You could write an attached property that you would set in the top element.
That attached property would recursively set IsTabStop to false in all the child elements.

Let me know if you need any help getting this to work.