CommunityToolkit.Mvvm.Input Namespace

Classes

AsyncRelayCommand

A command that mirrors the functionality of RelayCommand, with the addition of accepting a Func<TResult> returning a Task as the execute action, and providing an ExecutionTask property that notifies changes when ExecuteAsync(Object) is invoked and when the returned Task completes.

AsyncRelayCommand<T>

A generic command that provides a more specific version of AsyncRelayCommand.

RelayCommand

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute(Object) method is true. This type does not allow you to accept command parameters in the Execute(Object) and CanExecute(Object) callback methods.

RelayCommand<T>

A generic command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is true. This class allows you to accept command parameters in the Execute(T) and CanExecute(T) callback methods.

Interfaces

IAsyncRelayCommand

An interface expanding IRelayCommand to support asynchronous operations.

IAsyncRelayCommand<T>

A generic interface representing a more specific version of IAsyncRelayCommand.

IRelayCommand

An interface expanding ICommand with the ability to raise the CanExecuteChanged event externally.

IRelayCommand<T>

A generic interface representing a more specific version of IRelayCommand.