Class DelegateCommand<T>
Delegate command capable of taking argument.
public class DelegateCommand<T> : ICommand
Type Parameters
T
- 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
parameterobject
Returns
Execute(object)
public void Execute(object parameter)
Parameters
parameterobject
RaiseCanExecuteChanged()
Invoke CanExecuteChanged event.
public void RaiseCanExecuteChanged()
Events
CanExecuteChanged
public event EventHandler CanExecuteChanged