CommunityToolkit / CommunityToolkit/dotnet

IRelayCommand.Executed and IAsyncRelayCommand.Executed events

Open
#405 0 comments 0 reactions 0 assignees View on GitHub
feature request :mailbox_with_mail:
Dominant language
C#
Stars
3.8k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

### 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

```cs
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.