# AutoSelectTextBox Derives from TextBox AutoSelectTextBox is a control whose content is selected when it receives the focus. It also performs automatic focus navigation when the caret reaches the extremities of the text range. ## Usage **XAML** {{ AutoSelectBehavior: The value of the "AutoSelectBehavior" property determines whether the content of the AutoSelectTextBox will be selected or not when the control gets the focus. AutoMoveFocus: Effect with "MaxLength" property: Setting the "MaxLength" of the text box allows the focus to move from the AutoSelectTextBox once the max length has been reached. In the following "Telephone Number" fields, the "MaxLength" properties of the controls have been set to 3, 3, and 4. Effect with Arrow keys Setting "AutoMoveFocus" to true also allows navigating the focus through the controls using the arrow keys to move the focus up, down, left, or right. You are no longer limited to the "left-right" navigation of the "Tab, Shift-Tab" keys. }} ## Properties || Property || Description | AutoMoveFocus | Gets or sets a value indicating if the focus can navigate in the appropriate flow direction (e.g., from one cell to another when a cell is being edited) when the cursor is at the beginning or end of the auto-select text box. | AutoSelectBehavior | Gets or sets a value indicating how the content of the auto-select text box is selected (Never or OnFocus). By default, Never. **Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).** ---