ClassTextBoxBehavior
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:
[SuppressMessage("Microsoft.Design", "CA1053:StaticHolderTypesShouldNotHaveConstructors")]
public class TextBoxBehavior
Inheritance: objectTextBoxBehavior
Constructors
TextBoxBehavior()
Declaration
public TextBoxBehavior()
Fields
DelayUpdateTextOnTextChangedProperty
Provides the behavior of updating a TextBox's TextProperty after a given delay (in milliseconds).
Declaration
public static readonly DependencyProperty DelayUpdateTextOnTextChangedProperty
Field Value
DependencyProperty
SelectAllOnGotFocusProperty
Represents the SelectAllOnGotFocus attached property.
Declaration
public static readonly DependencyProperty SelectAllOnGotFocusProperty
Field Value
DependencyProperty
SelectAllOnTripleClickProperty
Represents the SelectAllOnTripleClick attached property.
Declaration
public static readonly DependencyProperty SelectAllOnTripleClickProperty
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
GetDelayUpdateTextOnTextChanged(TextBox)
Gets the DelayUpdateTextOnTextChanged property.
Declaration
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
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetSelectAllOnGotFocus(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
GetSelectAllOnTripleClick(TextBox)
Gets the whether SelectAll should be called when mouse is triple clicked.
Declaration
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetSelectAllOnTripleClick(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
GetUpdateTextOnEnter(TextBox)
Gets the whether text should be updated on enter.
Declaration
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
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
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool GetUpdateTextOnTextChanged(TextBox textBox)
Parameters
textBox
TextBox
The text box.
Returns
SetDelayUpdateTextOnTextChanged(TextBox, int?)
Sets the DelayUpdateTextOnTextChanged property.
Declaration
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
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
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.
SetSelectAllOnTripleClick(TextBox, bool)
Sets whether SelectAll should be called when mouse is triple clicked.
Declaration
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetSelectAllOnTripleClick(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
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
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
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void SetUpdateTextOnTextChanged(TextBox textBox, bool value)
Parameters
textBox
TextBox
The text box.
value
If set to true then text should be updated.