0

What is the difference between toggling the keyboard focus in a WPF application via Tab and via Ctrl-Tab? Which (dependency) properties and overridable functions and which control types determine this behaviour?

In my App, it seems that I can toggle between all focusable items via Ctrl-Tab, but only a few selected via Tab. How can I specify which items can be reached via which method?

Some items (TextBox or Combobox) are grouped in a ListBox. However, for some reason, the Tab key always puts the focus to some item outside the ListBox; I would prefer if it stays inside. Unfortunately, I cannot present actual xaml-code here as the view is dynamically created.

LionAM
  • 1,271
  • 10
  • 28
  • 1
    Check [https://stackoverflow.com/questions/8547437/wpf-tab-key-navigation](https://stackoverflow.com/questions/8547437/wpf-tab-key-navigation) and the [Keyboard.Navigation](https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/focus-overview#Keyboard_Navigation) class to set tab order and how to set different tab controls for different items. – Robionic May 23 '18 at 11:46
  • Thank you. The KeyboardNavigation class was helpful. The problem was, that the TabNavigation in the parent ListBox was wrong. Unfortunately, Snoop did not show me the responsible attached property. – LionAM May 25 '18 at 15:54

0 Answers0