CommandBase Constructor

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, 2019 • Updated: 01/06/19
Comment or report problem with topic