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)


Function that takes action

Function that determines whether the action is enabled

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-2023 • Updated: 11/23/21
Comment or report problem with topic