u/yumzin r/dotnet • Recommends
On “Command "responsibilities" in WPF MVVM pattern”
CommunityToolkit.Mvvm is the way to go IMO. Commands are as simple as:
public partial class MyViewModel : ObservableObject {
RelayCommand
public void DoTheThing() { ... }
}
It autogenerates a `DoTheThingCommand` property which you can bind to in the view.
EDIT: decent introduction video related to this: link to this video