An attribute to automatically trigger NotifyCanExecuteChanged for commands when dependent properties change, reducing manual boilerplate code.
[ViewModel]
public partial class MyViewModel
{
[Bind]
[NotifyCanExecuteChanged(nameof(ClickCommand))]
private bool _isInteractable;
[RelayCommand(CanExecute = nameof(IsInteractable))]
private void Click()
{
// ...
}
}
An attribute to automatically trigger NotifyCanExecuteChanged for commands when dependent properties change, reducing manual boilerplate code.