设置选项卡顺序在WPF [英] Setting tab order in WPF
本文介绍了设置选项卡顺序在WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在WPF中设置Tab键顺序排列?我有一个ItemsControl有一些项目扩大和一些倒塌,想跳过当我跳格倒塌的。
How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing.
任何想法?
推荐答案
您可以通过设置<一个跳过选项卡序列元件href="http://msdn.microsoft.com/en-us/library/system.windows.input.keyboardnavigation.istabstop.aspx">KeyboardNavigation.IsTabStop在XAML元素。
You can skip elements in the tab sequence by setting KeyboardNavigation.IsTabStop on the element in XAML.
KeyboardNavigation.IsTabStop="False"
您可以设置一个触发器,将基于扩张状态切换这个属性。
You can setup a trigger that would toggle this property based on the expanded state.
这篇关于设置选项卡顺序在WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文