 | RelayCommand(ActionObject, FuncBoolean) Constructor |
Constructor - takes over an action to be executed
and a check routine for (de)activating the action.
Namespace: NetEti.MVVMiniAssembly: NetEti.MVVMini (in NetEti.MVVMini.dll) Version: 1.0.0+7b60487fcbc3b95636e4fc726213c9ca8562bee8
Syntaxpublic RelayCommand(
Action<Object?> execute,
Func<bool>? canExecute
)
Public Sub New (
execute As Action(Of Object),
canExecute As Func(Of Boolean)
)
public:
RelayCommand(
Action<Object^>^ execute,
Func<bool>^ canExecute
)
new :
execute : Action<Object> *
canExecute : Func<bool> -> RelayCommand
Parameters
- execute ActionObject
- An action to be executed by the command.
- canExecute FuncBoolean
- A check routine that leads to the (de)activation of the command.
See also