Skip to main content
Version: 3.5

ICommand

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Defines a command that can be used for data binding.

public interface ICommand

Methods

Instance memberCanExecute(args)

Defines a method that determines whether the command can execute in its current state.

ParameterTypeDescription
argsCommandArgsA CommandArgs that contains data that can be used by the command.

Returns: Boolean. true if this command can be executed; otherwise, false.

Instance memberExecute(args)

Defines a method to be called when the command is invoked.

ParameterTypeDescription
argsCommandArgsA CommandArgs that contains data that can be used by the command.

Instance memberRaiseCanExecuteChanged()

Fires the CanExecuteChanged event.

Events

Instance memberCanExecuteChanged

EventHandler Fired when changes occur that affect whether or not the command should execute.

Implemented By

NameDescription
CommandImplements the ICommand interface wrapping execute and canExecute actions.
Command<T>Implements the ICommand interface wrapping execute and canExecute actions.