Class DelegateCommand<T>
Delegate command capable of taking argument.
public class DelegateCommand<T> : ICommand
Type Parameters
T
- Delegate command capable of taking argument. The argument type.
- Inheritance
-
DelegateCommand<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
DelegateCommand(Action<T>, Func<T, bool>)
Creates a new command with conditional execution.
The execution logic. The execution status logic.public DelegateCommand(Action<T> execute, Func<T, bool> canExecute = null)
Parameters
Methods
CanExecute(object)
public bool CanExecute(object parameter)
Parameters
parameter
object
Returns
Execute(object)
public void Execute(object parameter)
Parameters
parameter
object
RaiseCanExecuteChanged()
Invoke CanExecuteChanged event.
public void RaiseCanExecuteChanged()
Events
CanExecuteChanged
public event EventHandler CanExecuteChanged