I am making some custom ICommand implementation of my own and I see A LOT of implementations going like this:
public event EventHandler CanExecuteChanged
{
a
Why all the examples on the web don't implement something as simple as this? Am I missing something?
I'm guessing it's mostly due to laziness... What you propose is indeed a better (more efficient) implementation. However, it's not complete: you still need to subscribe to CommandManager.RequerySuggested
to raise CanExecuteChanged
on the command.