Click or drag to resize

RelayValueCommand<TParameter, TValue> Constructor

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public RelayValueCommand(
	Func<TParameter, TValue> getValue,
	Action<TParameter, TValue> setValue,
	Action<TParameter> execute = null,
	Predicate<TParameter> canExecute = null
)

Parameters

getValue
Type: System.Func<TParameter, TValue>
Delegate to get the value.
setValue
Type: System.Action<TParameter, TValue>
Delegate to set value.
execute (Optional)
Type: System.Action<TParameter>
Delegate to call when the command is executed, which usually changes the value. (optional).
canExecute (Optional)
Type: System.Predicate<TParameter>
Delegate to call to determine if the command can be executed (optional).
See Also