I know this was done to death, but most of the answers are written like this: "Yes, you can use event handlers instead of commands if you want." This still does not solve the problem of whether writing complex commands is justified, rather than just connecting event handlers in the code behind to invoke test methods in your view model.
I don’t like commands because they produce a lot of template code and do not give me any benefit compared to the usual methods, plus some of them (for example, drag and drop) are a pain for implementation.
What is wrong with the letter:
separated code:
private void Button_Click(object sender, RoutedEventArgs e)
{
viewModel.LoadData();
}
ViewModel:
public void LoadData()
{
}
( ), . IMO, -, . ?
user302845