tags:

views:

16

answers:

1

I have a treeview that has a checkbox nested in for each item. I want to be able to use the up and down arrows on my keyboard to traverse the tree, but the checkbox adds another step because it gets highlighted first and then the move occurs. Basically I have to use the up/down arrows twice to move up or down the tree. Is there a way to make the checkbox never get focus?

+2  A: 

Set the Focusable property of the CheckBox to false.

Here is a nice example by WPF guru Josh Smith that does exactly what it sounds like you want.

Wonko the Sane