WPF tab order with custom controls?

前端 未结 5 1213
别那么骄傲
别那么骄傲 2021-01-14 13:46

I have a WPF page that contains several out of the box controls with the tab order set.

I have a custom control (NumericSpinner) that contains: border/grid/text box/

5条回答
  •  执念已碎
    2021-01-14 13:46

    I don't have a complete solution for you, but the following four things should be checked for tab-cycling:

    • TabIndex defines the tab-order
    • IsTabStop says if the control should be used for tab-cycling
    • FocusManager.IsFocusScope says, if an element builds its own focus area
    • Focusable says if an UIElement can get the focus.

    I could imagine that the IsFocusScope would be interesting.

提交回复
热议问题