You can use commands to use in the MVVM pattern, Different types of commands are available.
RelayCommand
1 | inherited from `ICommand` |
1 | private ICommand itemInvokedCommand; |
DelegateCommand
Implementation of ICommand where the Execute and CanExecute callbacks are handled by delegates.
1 | public ICommand AddItems { get; } |
you can use IDelegateCommand Instead of ICommand