So i basically have this ListView and i would like to press Tab and iterate through my TreeViewItems (preferrably only my TextBoxes)
<ListView>
<ListView.View>
<GridView>
<GridViewColumn Header="number" />
<GridViewColumn Header="Selector">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding SelectorName}"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
The scenario that i am seeing is after pressing the tab for the first time the whole first TreeViewItem is selected and pressing Tab again the first TextBox is selected .Finally the third TAB gets out of the TreeView to the next Control although there are more TextBoxes that i would like to catch before “tabing” to to the next Control.
Thankx
Edit :
The Question was answered here :
How to TAB through TextBoxes in a ListView
Maybe i am missing something but i cannot find any simple method to do this, here would be an outline of what you could do:
Things i did here:
Code:
This is very sketchy, use any part of this at your own risk. (The focusing also could have been done differently without bringing the selection into this i think)
(The
Commandclass is just a generic implementation ofICommandwhich takes a lambda which is executed in the interface’sExecutemethod)