Class
TextBoxBehavior

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:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1053:StaticHolderTypesShouldNotHaveConstructors")]
public class TextBoxBehavior

Inheritance: objectTextBoxBehavior

Constructors

TextBoxBehavior()

Declaration

cs-api-definition
public TextBoxBehavior()

Fields

DelayUpdateTextOnTextChangedProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty DelayUpdateTextOnTextChangedProperty

Field Value

DependencyProperty

SelectAllOnGotFocusProperty

Represents the SelectAllOnGotFocus attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectAllOnGotFocusProperty

Field Value

DependencyProperty

SelectAllOnTripleClickProperty

Represents the SelectAllOnTripleClick attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectAllOnTripleClickProperty

Field Value

DependencyProperty

UpdateTextOnEnterProperty

Represents the UpdateTextOnEnter attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty UpdateTextOnEnterProperty

Field Value

DependencyProperty

UpdateTextOnTextChangedProperty

Represents the UpdateTextOnTextChanged attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty UpdateTextOnTextChangedProperty

Field Value

DependencyProperty

Methods

GetDelayUpdateTextOnTextChanged(TextBox)

Gets the DelayUpdateTextOnTextChanged property.

Declaration

cs-api-definition
public static int? GetDelayUpdateTextOnTextChanged(TextBox textBox)

Parameters

textBox

TextBox

Returns

int?

GetSelectAllOnGotFocus(TextBox)

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetSelectAllOnGotFocus(TextBox textBox)

Parameters

textBox

TextBox

The text box.

Returns

bool

GetSelectAllOnTripleClick(TextBox)

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetSelectAllOnTripleClick(TextBox textBox)

Parameters

textBox

TextBox

The text box.

Returns

bool

GetUpdateTextOnEnter(TextBox)

Gets the whether text should be updated on enter.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetUpdateTextOnEnter(TextBox textBox)

Parameters

textBox

TextBox

The text box.

Returns

bool

GetUpdateTextOnTextChanged(TextBox)

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetUpdateTextOnTextChanged(TextBox textBox)

Parameters

textBox

TextBox

The text box.

Returns

bool

SetDelayUpdateTextOnTextChanged(TextBox, int?)

Sets the DelayUpdateTextOnTextChanged property.

Declaration

cs-api-definition
public static void SetDelayUpdateTextOnTextChanged(TextBox textBox, int? value)

Parameters

textBox

TextBox

value

int?

SetSelectAllOnGotFocus(TextBox, bool)

Sets whether SelectAll should be called when focus is got.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetSelectAllOnGotFocus(TextBox textBox, bool value)

Parameters

textBox

TextBox

The text box.

value

bool

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

SetSelectAllOnTripleClick(TextBox, bool)

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetSelectAllOnTripleClick(TextBox textBox, bool value)

Parameters

textBox

TextBox

The text box.

value

bool

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

SetUpdateTextOnEnter(TextBox, bool)

Sets whether text should be updated on enter.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetUpdateTextOnEnter(TextBox textBox, bool value)

Parameters

textBox

TextBox

The text box.

value

bool

If set to true then text should be updated.

SetUpdateTextOnTextChanged(TextBox, bool)

Sets whether text should be updated on each text change.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetUpdateTextOnTextChanged(TextBox textBox, bool value)

Parameters

textBox

TextBox

The text box.

value

bool

If set to true then text should be updated.