CommunityToolkit / CommunityToolkit/dotnet
IRelayCommand.Executed and IAsyncRelayCommand.Executed events
Open
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
Assessment
This issue has not been assessed yet.