使用TabIndex设置顺序
<StackPanel Orientation="Vertical">
<Button Content="Button1" TabIndex="0"></Button>
<Button Content="Button2" TabIndex="1"></Button>
<Button Content="Button3" TabIndex="2"></Button>
<Button Content="Button4" TabIndex="5"></Button>
<Button Content="Button5" TabIndex="3"></Button>
<Button Content="Button6" TabIndex="4"></Button>
</StackPanel>
示例代码
https://github.com/zLulus/NotePractice/tree/dev3/WPF/WpfDemo/TabSetting