Share via


RelayCommand Constructor (Generic Action, Generic Predicate)

Initializes a new instance of the RelayCommand class with the provided delegate and predicate

Syntax

public RelayCommand (
         Action<T> executeDelegate,
         Predicate<T> canExecuteDelegate
)

Parameters

  • executeDelegate
    Type: Action<T>
    Delegate to be executed
  • canExecuteDelegate
    Type: Predicate<T>
    Predicate determining whether this command can currently execute

Requirements

Namespace: Microsoft.Kinect.Toolkit

Assembly: Microsoft.Kinect.Toolkit (in microsoft.kinect.toolkit.dll)

See Also

Reference

RelayCommand Generic Class
RelayCommand Members
Microsoft.Kinect.Toolkit Namespace