Click or drag to resize

ClearTextBoxOnButtonClickBehavior Class

Clears the text of the TextBox when the associated button is clicked.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.WindowsFreezable
        System.Windows.Media.AnimationAnimatable
          Behavior
            BehaviorButton
              DataGridExtensions.BehaviorsClearTextBoxOnButtonClickBehavior

Namespace:  DataGridExtensions.Behaviors
Assembly:  DataGridExtensions (in DataGridExtensions.dll)
Syntax
public class ClearTextBoxOnButtonClickBehavior : Behavior<Button>

The ClearTextBoxOnButtonClickBehavior type exposes the following members.

Constructors
  NameDescription
Public methodClearTextBoxOnButtonClickBehavior
Initializes a new instance of the ClearTextBoxOnButtonClickBehavior class
Top
Properties
  NameDescription
Public propertyTextBox
Gets or sets the text box to clear.
Top
Fields
  NameDescription
Public fieldStatic memberTextBoxProperty
Identifies the TextBox dependency property
Top
See Also