如何:在 TextBox 控件中启用制表符

此示例演示如何在 TextBox 控件中允许接受制表符作为输入。

示例

若要允许在 TextBox 控件中接受制表符作为输入,请将 AcceptsTab 属性设置为 true

<TextBox AcceptsTab="True">
  If the AcceptsTab element is "True", the TextBox control will accept tab characters as regular input when the TAB key is pressed.  
  If AcceptsTab is "False" (the default), pressing TAB moves the focus to the next focusable control. 
</TextBox>

另请参阅