RelayCommand Class

A command whose sole purpose is to relay its functionality to other objects by invoking delegates.

Definition

Namespace: Common.Wpf.Commands
Assembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
C#
public class RelayCommand : ICommand
Inheritance
Object    RelayCommand
Implements
ICommand

Constructors

RelayCommandInitializes a new instance of the RelayCommand class.

Methods

CanExecuteDefines the method that determines whether the command can execute in its current state.
ExecuteDefines the method to be called when the command is invoked.

Events

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

See Also