Restrict tab order to a single user control (WPF)

前端 未结 1 2012
抹茶落季
抹茶落季 2021-01-19 01:30

Currently I have a WPF project with a custom UserControl. This control contains a grid which houses multiple form type elements (checkboxes, textboxes, comboboxes, etc.). Th

相关标签:
1条回答
  • 2021-01-19 01:35

    Try this on your user control:

    KeyboardNavigation.TabNavigation="Cycle"
    

    This will ensure when the last element in the user control is reached, the next tab press will cycle back to the beginning. See the MSDN for more information.

    0 讨论(0)
提交回复
热议问题