Class
TextBoxBehavior

An attached behavior that provides functionality on top of the one provided by the TextBox control.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class TextBoxBehavior

Inheritance: objectTextBoxBehavior

Constructors

TextBoxBehavior()

Declaration

cs-api-definition
public TextBoxBehavior()

Fields

SelectAllOnGotFocusProperty

Represents the SelectAllOnGotFocus attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectAllOnGotFocusProperty

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

GetSelectAllOnGotFocus(TextBox)

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

Declaration

cs-api-definition
public static bool GetSelectAllOnGotFocus(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
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
public static bool GetUpdateTextOnTextChanged(TextBox textBox)

Parameters

textBox

TextBox

The text box.

Returns

bool

SetSelectAllOnGotFocus(TextBox, bool)

Sets whether SelectAll should be called when focus is got.

Declaration

cs-api-definition
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.

SetUpdateTextOnEnter(TextBox, bool)

Sets whether text should be updated on enter.

Declaration

cs-api-definition
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
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.