本示例演示如何将制表符接受为 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>