Table of Contents

Class Command

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Allows an application author to define a method to be invoked.

public class Command : ICommand
Inheritance
Command
Implements

Constructors

Command()

Initializes a new instance of the Command class.

Command(ExecuteDelegate)

Initializes a new instance of the Command class with the specified executeDelegate.

Command(ExecuteDelegate, CanExecuteDelegate)

Initializes a new instance of the Command class with the specified executeDelegate and canExecuteDelegate.

Methods

CanExecute(object?)

Returns whether the command can be executed.

Execute(object?)

Defines the method that should be executed when the command is executed.

RaiseCanExecuteChanged()

Raises the CanExecuteChanged event.

Events

CanExecuteChanged

Raised when the ability of the command to execute has changed.