Class RelayCommand<T>
Inheritance
System.Object
RelayCommand<T>
Implements
System.Windows.Input.ICommand
Assembly: Catalog.dll
Syntax
public class RelayCommand<T> : ICommand
Type Parameters
Constructors
RelayCommand(Action<T>)
Declaration
public RelayCommand(Action<T> execute)
Parameters
Type |
Name |
Description |
System.Action<T> |
execute |
|
RelayCommand(Action<T>, Func<T, Boolean>)
Declaration
public RelayCommand(Action<T> execute, Func<T, bool> canExecute)
Parameters
Type |
Name |
Description |
System.Action<T> |
execute |
|
System.Func<T, 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