How do I set the tab order of user interface elements?
Unlike Windows Forms applications you rarely need to set the tab order of controls on a WPF Window. This is because WPF uses the hierarchical layout of the Window elements to determine the tab order. If you need to manually control the sequence, you can set the TabIndex property of each control to specify the tab order. By default, the TabIndex of all controls is set to 1. So, if you simply want to specify which control should get focus first, you can set its TabIndex to zero (0).
If you want to remove a control from the tab sequence, set its IsTabStop property to false.
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 10/23/10
Comment or report problem with topic
