TextBoxBehavior ClassDW.WPFToolkit Documentation
Brings the features to text boxes to define its selection or bound the selection part.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityTextBoxBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class TextBoxBehavior : DependencyObject

The TextBoxBehavior type exposes the following members.

Constructors

  NameDescription
Public methodTextBoxBehavior
Initializes a new instance of the TextBoxBehavior class
Top
Methods

  NameDescription
Public methodStatic memberGetRefreshBindingOnKey
Gets a value that indicates on which key the text binding has to be refreshed in a text box.
Public methodStatic memberGetSelectAllOnFocus
Gets a value that indicates if everything has to be selected automatically when the text box got the focus.
Public methodStatic memberGetSelectedText
Gets the selected text in a text box.
Public methodStatic memberSetRefreshBindingOnKey
Attaches a value that indicates on which key the text binding has to be refreshed in a text box.
Public methodStatic memberSetSelectAllOnFocus
Attaches a value that indicates if everything has to be selected automatically when the text box got the focus.
Public methodStatic memberSetSelectedText
Attaches the information which text has to be selected in a text box.
Top
Fields

  NameDescription
Public fieldStatic memberRefreshBindingOnKeyProperty
Public fieldStatic memberSelectAllOnFocusProperty
Public fieldStatic memberSelectedTextProperty
Top
Attached Properties

  NameDescription
Public attached propertyRefreshBindingOnKey
Public attached propertySelectAllOnFocus
Public attached propertySelectedText
Top
Examples

XAML
<TextBox Text="{Binding TheText}"
         Interactivity:TextBoxBehavior.SelectAllOnFocus="True"
         Interactivity:TextBoxBehavior.SelectedText="{Binding SelectedText}" />
See Also

Reference