此範例顯示如何在 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>
另請參閱
- TextBox 概觀
- RichTextBox 概述