Table of Contents

Interface IRelayCommand

Namespace
EasySoftware.MvvmMini.Core
Assembly
EasySoftware.MvvmMini.Core.dll

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

bool

UseCommandManager

Gets a value indicating whether CanExecuteChanged is driven by RequerySuggested instead of explicit calls to RaiseCanExecuteChanged().

bool UseCommandManager { get; }

Property Value

bool

Methods

ExecuteAsync(object)

Executes the command and returns a task that completes when the work is done.

Task ExecuteAsync(object parameter)

Parameters

parameter object

The 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()