Je ne peux pas faire fonctionner KeyboardNavigation pour l'arborescence. Je compris que le problème de mon d'une façon liée à la TreeViewItem, vérifier ceci par exemple:TreeViewItem KeyboardNavigation ne fonctionne pas
Pour les travaux ListBoxItem KeyboardNavigation:
<ListBoxItem>
<StackPanel>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="1"/>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="2"/>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="3"/>
</StackPanel>
</ListBoxItem>
Alors que sur TreeViewItems il refuse de travailler:
<TreeViewItem>
<StackPanel>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="1"/>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="2"/>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="3"/>
</StackPanel>
</TreeViewItem>
J'ai exécuté un test séparé contenant uniquement (!) Le code ci-dessus sur un nouveau projet dans une fenêtre vide.
Quelqu'un peut-il aider pls :-)
Gili
Ignore le style - il est lié – Gilad