I am using the DatePicker control in the original WPF toolkit.

I am trying to remove the DatePicker from the tab order. Setting properties like IsTabStop or TabIndex or KeyboardNavigation.IsTabStop don't really work. Setting TabIndex to -1 for example removes it from the tab order until I reach the end of the tab order on my form and it cycles back to the beginning (which is the behavior I want). Once it has cycled the DatePicker is back in the tab order.

The problem seems to be that DatePicker encapsulates a TextBox which is the actual tab stop.

How can I set the IsTabStop property of DatePicker's TextBox in XAML?

有帮助吗?

解决方案

This seems to do the trick:

KeyboardNavigation.TabNavigation="None"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top