Interface IRelayCommand
An ICommand that runs asynchronous work and cannot be executed again while it is running.
public interface IRelayCommand : ICommand
- Inherited Members
Properties
IsRunning
Gets a value indicating whether the command is currently executing.
bool IsRunning { get; }
Property Value
UseCommandManager
Gets a value indicating whether CanExecuteChanged is driven by RequerySuggested instead of explicit calls to RaiseCanExecuteChanged().
bool UseCommandManager { get; }
Property Value
Methods
ExecuteAsync(object)
Executes the command and returns a task that completes when the work is done.
Task ExecuteAsync(object parameter)
Parameters
parameterobjectThe command parameter.
Returns
- Task
A task that represents the execution.
RaiseCanExecuteChanged()
Notifies bound controls that the result of CanExecute(object) may have changed.
void RaiseCanExecuteChanged()