Class RelayCommand

Inheritance
System.Object
RelayCommand
Implements
System.Windows.Input.ICommand
Namespace: Catalog.Helpers
Assembly: Catalog.dll
Syntax
public class RelayCommand : ICommand

Constructors

RelayCommand(Action)

Declaration
public RelayCommand(Action execute)
Parameters
Type Name Description
System.Action execute

RelayCommand(Action, Func<Boolean>)

Declaration
public RelayCommand(Action execute, Func<bool> canExecute)
Parameters
Type Name Description
System.Action execute
System.Func<System.Boolean> canExecute

Methods

CanExecute(Object)

Declaration
public bool CanExecute(object parameter)
Parameters
Type Name Description
System.Object parameter
Returns
Type Description
System.Boolean

Execute(Object)

Declaration
public void Execute(object parameter)
Parameters
Type Name Description
System.Object parameter

OnCanExecuteChanged()

Declaration
public void OnCanExecuteChanged()

Events

CanExecuteChanged

Declaration
public event EventHandler CanExecuteChanged
Event Type
Type Description
System.EventHandler

Implements

System.Windows.Input.ICommand