, Microsoft , - , , , CanExecute . , CanExecute DependencyProperty, viewmodel, , ?
Perhaps they also thought that it was necessary to separate the implementation of the command from the datacontext control. But again, this seems unnecessary to me, because the logic should live near the data in question, and is also the main principle of OO.
Personally, I avoid using commands in MVVM because of the clutter you have to create to implement them. I just allow the delegate events with the code view to the presentation model.
source
share