Click or drag to resize

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
)

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