ClassTextBoxBehavior
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:
public class TextBoxBehavior
Inheritance: objectTextBoxBehavior
Constructors
TextBoxBehavior()
Declaration
public TextBoxBehavior()
Fields
SelectAllOnGotFocusProperty
Represents the SelectAllOnGotFocus attached property.
Declaration
public static readonly DependencyProperty SelectAllOnGotFocusProperty
Field Value
DependencyProperty
UpdateTextOnEnterProperty
Represents the UpdateTextOnEnter attached property.
Declaration
public static readonly DependencyProperty UpdateTextOnEnterProperty
Field Value
DependencyProperty
UpdateTextOnTextChangedProperty
Represents the UpdateTextOnTextChanged attached property.
Declaration
public static readonly DependencyProperty UpdateTextOnTextChangedProperty
Field Value
DependencyProperty
Methods
GetSelectAllOnGotFocus(TextBox)
Gets the whether SelectAll should be called when focus is got.
Declaration
public static bool GetSelectAllOnGotFocus(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
GetUpdateTextOnEnter(TextBox)
Gets the whether text should be updated on enter.
Declaration
public static bool GetUpdateTextOnEnter(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
GetUpdateTextOnTextChanged(TextBox)
Gets the whether text should be updated on each text change.
Declaration
public static bool GetUpdateTextOnTextChanged(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
SetSelectAllOnGotFocus(TextBox, bool)
Sets whether SelectAll should be called when focus is got.
Declaration
public static void SetSelectAllOnGotFocus(TextBox textBox, bool value)
Parameters
textBox
TextBox
The text box.
value
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
public static void SetUpdateTextOnEnter(TextBox textBox, bool value)
Parameters
textBox
TextBox
The text box.
value
If set to true then text should be updated.
SetUpdateTextOnTextChanged(TextBox, bool)
Sets whether text should be updated on each text change.
Declaration
public static void SetUpdateTextOnTextChanged(TextBox textBox, bool value)
Parameters
textBox
TextBox
The text box.
value
If set to true then text should be updated.