Share via


How to: Enable Tab Characters in a TextBox Control

This example shows how to enable the acceptance of tab characters as normal input in a TextBox control.

Example

To enable the acceptance of tab characters as input in a TextBox control, set the AcceptsTab attribute to 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>

See Also

Concepts

TextBox Overview

RichTextBox Overview