RelayCommandT Constructor (ActionT, FuncT, Boolean) |
Namespace:
Enkoni.Framework.UI.Mvvm
Assembly:
Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntaxpublic RelayCommand(
Action<T> action,
Func<T, bool> canExecute
)
Public Sub New (
action As Action(Of T),
canExecute As Func(Of T, Boolean)
)
public:
RelayCommand(
Action<T>^ action,
Func<T, bool>^ canExecute
)
new :
action : Action<'T> *
canExecute : Func<'T, bool> -> RelayCommand
Parameters
- action
- Type: SystemActionT
The action that will be executed when the command is invoked. - canExecute
- Type: SystemFuncT, Boolean
The function that will be used to determine if the command can be executed.
Exceptions
See Also