# RelayCommand cookbook Recipes for `RelayCommand` / `AsyncRelayCommand` and the `[RelayCommand]` generator. Defaults to the generator-attribute style; manual constructor patterns are listed at the bottom for advanced cases. --- ## Sync command ```csharp [RelayCommand] private void IncrementCounter() => Counter++; ``` ```xml