WPF ICommand vs RoutedCommand
问题 Let's have a button Command property bound to a custom command. When should I implement ICommand and when derive from RoutedCommand ? I see that RoutedCommand implements ICommand . In which case could I need to iplement an ICommand ? What about MVVM model? Which one suits better for this purpose? 回答1: As you have noticed the RoutedCommand class is an implementation of the ICommand interface, its main distinction if that its function is similar to that of a RoutedEvent : The Execute and