RelayValueCommandTValue Constructor |
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public RelayValueCommand(
Func<TValue> getValue,
Action<TValue> setValue,
Action execute = null,
Func<bool> canExecute = null
)
Public Sub New (
getValue As Func(Of TValue),
setValue As Action(Of TValue),
Optional execute As Action = Nothing,
Optional canExecute As Func(Of Boolean) = Nothing
)
new :
getValue : Func<'TValue> *
setValue : Action<'TValue> *
?execute : Action *
?canExecute : Func<bool>
(* Defaults:
let _execute = defaultArg execute null
let _canExecute = defaultArg canExecute null
*)
-> RelayValueCommand
Parameters
- getValue
- Type: SystemFuncTValue
Delegate to get the value. - setValue
- Type: SystemActionTValue
Delegate to set value. - execute (Optional)
- Type: SystemAction
Delegate to call when the command is executed (which usually changes the value). - canExecute (Optional)
- Type: SystemFuncBoolean
Delegate to call to determine if the command can be executed.
See Also