Share via


RelayCommand Constructor (Action, Generic Func)

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

Syntax

public RelayCommand (
         Action executeDelegate,
         Func<bool> canExecuteDelegate
)

Parameters

  • executeDelegate
    Type: Action
    Delegate to be executed.
  • canExecuteDelegate
    Type: Func<Boolean>
    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 Class
RelayCommand Members
Microsoft.Kinect.Toolkit Namespace