Skip to content

TextBoxBehavior

Patrick Schimmel edited this page May 24, 2021 · 2 revisions

TextBoxBehavior

Namespace: ES.Tools.Behaviors

The TextBoxBehavior is an extension for WPF TextBoxes.

SelectAllTextOnFocus

Set the SelectAllTextOnFocus attached dependency property to true to select the TextBox text when the TextBox gets focused.

Usage

<TextBox behaviors:TextBoxBehavior.SelectAllTextOnFocus="true" Text="Example" />

Remarks

See also PasswordBoxBehavior.

Clone this wiki locally