共用方式為


HOW TO:在 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>

請參閱

概念

TextBox 概觀

RichTextBox 概觀