RelayCommand Constructor (Action, FuncBoolean) |
Namespace:
Enkoni.Framework.UI.Mvvm
Assembly:
Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntaxpublic RelayCommand(
Action action,
Func<bool> canExecute
)
Public Sub New (
action As Action,
canExecute As Func(Of Boolean)
)
public:
RelayCommand(
Action^ action,
Func<bool>^ canExecute
)
new :
action : Action *
canExecute : Func<bool> -> RelayCommand
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
See Also