Skip to content

IRelayCommand.Executed and IAsyncRelayCommand.Executed events #405

@HavenDV

Description

@HavenDV

Overview

Allows the user to respond to the execution of commands in a reactive manner. This is a fairly common pattern, especially for people who have used reactive code before.

API breakdown

namespace CommunityToolkit.Mvvm.Input;

public interface IRelayCommand : ICommand
{
    public event EventHandler Executed;
}

Usage example

Reactive code, some checks after command execution

Breaking change?

No

Alternatives

ReactiveUI.ReactiveCommand

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions