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:
public class TextBoxBehavior
Inheritance: objectTextBoxBehavior
Constructors
public TextBoxBehavior()
Fields
DelayUpdateTextOnTextChangedProperty
DependencyProperty
Provides the behavior of updating a TextBox's TextProperty after a given delay (in milliseconds).
public static readonly DependencyProperty DelayUpdateTextOnTextChangedProperty
SelectAllOnGotFocusProperty
DependencyProperty
Represents the SelectAllOnGotFocus attached property.
public static readonly DependencyProperty SelectAllOnGotFocusProperty
SelectAllOnTripleClickProperty
DependencyProperty
Represents the SelectAllOnTripleClick attached property.
public static readonly DependencyProperty SelectAllOnTripleClickProperty
UpdateTextOnEnterProperty
DependencyProperty
Represents the UpdateTextOnEnter attached property.
public static readonly DependencyProperty UpdateTextOnEnterProperty
UpdateTextOnTextChangedProperty
DependencyProperty
Represents the UpdateTextOnTextChanged attached property.
public static readonly DependencyProperty UpdateTextOnTextChangedProperty
Methods
Gets the DelayUpdateTextOnTextChanged property.
public static int? GetDelayUpdateTextOnTextChanged(TextBox textBox)
int?
Gets the whether SelectAll should be called when focus is got.
public static bool GetSelectAllOnGotFocus(TextBox textBox)
The text box.
Returns:Gets the whether SelectAll should be called when mouse is triple clicked.
public static bool GetSelectAllOnTripleClick(TextBox textBox)
The text box.
Returns:Gets the whether text should be updated on enter.
public static bool GetUpdateTextOnEnter(TextBox textBox)
The text box.
Returns:Gets the whether text should be updated on each text change.
public static bool GetUpdateTextOnTextChanged(TextBox textBox)
The text box.
Returns:Sets the DelayUpdateTextOnTextChanged property.
public static void SetDelayUpdateTextOnTextChanged(TextBox textBox, int? value)
Sets whether SelectAll should be called when focus is got.
public static void SetSelectAllOnGotFocus(TextBox textBox, bool value)
The text box.
valueboolIf set to true then SelectAll should be called when focus is got.
Sets whether SelectAll should be called when mouse is triple clicked.
public static void SetSelectAllOnTripleClick(TextBox textBox, bool value)
The text box.
valueboolIf set to true then SelectAll should be called when focus is got.
Sets whether text should be updated on enter.
public static void SetUpdateTextOnEnter(TextBox textBox, bool value)
The text box.
valueboolIf set to true then text should be updated.
Sets whether text should be updated on each text change.
public static void SetUpdateTextOnTextChanged(TextBox textBox, bool value)
The text box.
valueboolIf set to true then text should be updated.