Constructor that allows you to hook up each of the command events
public CommandBase(Action<Object,ICommand> execute, Func<Object,ICommand,Boolean> canExecute, Func<Object,ICommand,Boolean> previewExecute)
Parameters
execute
Function that takes action
canExecute
Function that determines whether the action is enabled
previewExecute
Function fire just prior to Execute to determine whether execute should fire. Return true or fals to indicate whether Execute should run or not. Allows for actions like cancelling or conditional execution.
See also:
Class CommandBase© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic