New to Telerik UI for WPFStart a free 30-day trial

Represents the behavior for the TextBox control in the Telerik UI for WPF library. This class provides functionalities to enhance the text box user experience, including handling input events and managing display logic.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class TextBoxBehavior

Inheritance: objectTextBoxBehavior

Constructors

C#
public TextBoxBehavior()

Fields

Provides the behavior of updating a TextBox's TextProperty after a given delay (in milliseconds).

C#
public static readonly DependencyProperty DelayUpdateTextOnTextChangedProperty

SelectAllOnGotFocusProperty

DependencyProperty

Represents the SelectAllOnGotFocus attached property.

C#
public static readonly DependencyProperty SelectAllOnGotFocusProperty

Represents the SelectAllOnTripleClick attached property.

C#
public static readonly DependencyProperty SelectAllOnTripleClickProperty

UpdateTextOnEnterProperty

DependencyProperty

Represents the UpdateTextOnEnter attached property.

C#
public static readonly DependencyProperty UpdateTextOnEnterProperty

Represents the UpdateTextOnTextChanged attached property.

C#
public static readonly DependencyProperty UpdateTextOnTextChangedProperty

Methods

Gets the DelayUpdateTextOnTextChanged property.

C#
public static int? GetDelayUpdateTextOnTextChanged(TextBox textBox)
Parameters:textBoxTextBoxReturns:

int?

Gets the whether SelectAll should be called when focus is got.

C#
public static bool GetSelectAllOnGotFocus(TextBox textBox)
Parameters:textBoxTextBox

The text box.

Returns:

bool

Gets the whether SelectAll should be called when mouse is triple clicked.

C#
public static bool GetSelectAllOnTripleClick(TextBox textBox)
Parameters:textBoxTextBox

The text box.

Returns:

bool

Gets the whether text should be updated on enter.

C#
public static bool GetUpdateTextOnEnter(TextBox textBox)
Parameters:textBoxTextBox

The text box.

Returns:

bool

Gets the whether text should be updated on each text change.

C#
public static bool GetUpdateTextOnTextChanged(TextBox textBox)
Parameters:textBoxTextBox

The text box.

Returns:

bool

Sets the DelayUpdateTextOnTextChanged property.

C#
public static void SetDelayUpdateTextOnTextChanged(TextBox textBox, int? value)
Parameters:textBoxTextBoxvalueint?

Sets whether SelectAll should be called when focus is got.

C#
public static void SetSelectAllOnGotFocus(TextBox textBox, bool value)
Parameters:textBoxTextBox

The text box.

valuebool

If set to true then SelectAll should be called when focus is got.

Sets whether SelectAll should be called when mouse is triple clicked.

C#
public static void SetSelectAllOnTripleClick(TextBox textBox, bool value)
Parameters:textBoxTextBox

The text box.

valuebool

If set to true then SelectAll should be called when focus is got.

Sets whether text should be updated on enter.

C#
public static void SetUpdateTextOnEnter(TextBox textBox, bool value)
Parameters:textBoxTextBox

The text box.

valuebool

If set to true then text should be updated.

Sets whether text should be updated on each text change.

C#
public static void SetUpdateTextOnTextChanged(TextBox textBox, bool value)
Parameters:textBoxTextBox

The text box.

valuebool

If set to true then text should be updated.