Table of Contents

Class RelayCommand<T>

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

A command that invokes a delegate. The command parameter must be of type T.

public class RelayCommand<T> : ICommand

Type Parameters

T
Inheritance
RelayCommand<T>
Implements

Constructors

RelayCommand(Action<T>)
RelayCommand(Action<T>, Predicate<T>)

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.