Show / Hide Table of Contents

Class TextChangedCommandBehavior

Implements a command behavior for TextBox control.

Inheritance
System.Object
CommandBehaviorBase<System.Windows.Controls.TextBox>
TextChangedCommandBehavior
CommandBehaviorBase<TextBox>.Command
CommandBehaviorBase<TextBox>.CommandParameter
CommandBehaviorBase<TextBox>.TargetObject
CommandBehaviorBase<TextBox>.ExecuteCommand()
CommandBehaviorBase<TextBox>.UpdateEnabledState()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class TextChangedCommandBehavior : CommandBehaviorBase<TextBox>

Constructors

View Source

TextChangedCommandBehavior(TextBox)

Initializes a new instance of the TextChangedCommandBehavior class.

Declaration
public TextChangedCommandBehavior(TextBox element)
Parameters
Type Name Description
System.Windows.Controls.TextBox element

Fields

View Source

CommandProperty

Command to execute on click event.

Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type Description
System.Windows.DependencyProperty

Methods

View Source

GetCommand(DependencyObject)

Retrieves the System.Windows.Input.ICommand attached to the System.Windows.Controls.TextBox.

Declaration
public static ICommand GetCommand(DependencyObject dependencyObject)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

TextBox or PasswordBox containing the Command dependency property

Returns
Type Description
System.Windows.Input.ICommand

The value of the command attached

View Source

SetCommand(DependencyObject, ICommand)

Sets the System.Windows.Input.ICommand to execute on the click event.

Declaration
public static void SetCommand(DependencyObject dependencyObject, ICommand command)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

A dependency object to attach command

System.Windows.Input.ICommand command

Command to attach

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX