Freigeben über


Vorgehensweise: Aktivieren von Tabstoppzeichen in einem TextBox-Steuerelement

In diesem Beispiel wird gezeigt, wie die Akzeptanz von Tabstoppzeichen als normale Eingabe in einem TextBox Steuerelement aktiviert wird.

Beispiel

Um die Akzeptanz von Tabstoppzeichen als Eingabe in einem TextBox Steuerelement zu aktivieren, legen Sie das AcceptsTab Attribut auf "true" fest.

<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>

Siehe auch