WPF Tab切换顺序设置

使用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

posted @ 2017-12-30 22:34  Lulus  阅读(1431)  评论(0编辑  收藏  举报