Click or drag to resize

RelayCommandT Constructor (ActionT, PredicateT)

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public RelayCommand(
	Action<T> execute,
	Predicate<T> canExecute
)

Parameters

execute
Type: SystemActionT
Delegate to execute the command.
canExecute
Type: SystemPredicateT
Delegate to determine the state of whether the command can be executed.
Remarks
This constructor allows you to specify whether the command can be executed. If the state of the canExecute delegate changes, you can call UpdateCanExecute to tell the control that is bound to this command to call the delegate again.
See Also