Table of Contents

Class RelayCommand

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

A command that invokes a delegate. This class does not provide the command parameter to the delegate - if you need that, use the generic version of this class instead.

public class RelayCommand : ICommand
Inheritance
RelayCommand
Implements

Constructors

RelayCommand(Action)
RelayCommand(Action, Func<bool>)

Methods

CanExecute(object)

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

Execute(object)

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

Events

CanExecuteChanged

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