Class RelayCommand<T>
- Namespace
- Playnite.SDK
- Assembly
- Playnite.SDK.dll
public class RelayCommand<T> : RelayCommandBase, ICommand
Type Parameters
T
- Inheritance
-
RelayCommand<T>
- Implements
-
- Inherited Members
-
Constructors
RelayCommand(Action<T>)
public RelayCommand(Action<T> execute)
Parameters
execute
Action<T>
RelayCommand(Action<T>, Predicate<T>)
public RelayCommand(Action<T> execute, Predicate<T> canExecute)
Parameters
execute
Action<T>
canExecute
Predicate<T>
public RelayCommand(Action<T> execute, Predicate<T> canExecute, KeyGesture gesture)
Parameters
execute
Action<T>
canExecute
Predicate<T>
gesture
KeyGesture
public RelayCommand(Action<T> execute, KeyGesture gesture)
Parameters
execute
Action<T>
gesture
KeyGesture
Methods
CanExecute(object)
public override bool CanExecute(object parameter)
Parameters
parameter
object
Returns
- bool
Execute(object)
public override void Execute(object parameter)
Parameters
parameter
object