Click or drag to resize

RelayCommand Constructor (Action, FuncBoolean)

Initializes a new instance of the RelayCommand class.

Namespace:  Enkoni.Framework.UI.Mvvm
Assembly:  Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntax
public RelayCommand(
	Action action,
	Func<bool> canExecute
)

Parameters

action
Type: SystemAction
The action that will be executed when the command is invoked.
canExecute
Type: SystemFuncBoolean
The function that will be used to determine if the command can be executed.
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is .
See Also