What is Routed Command in WPF?
Pradeep Yadav
Routed command can route (bubble/ tunnel) through the element hierarchy. Routed Command implements ICommand interface. It allows attaching input gestures like Mouse input and Keyboard shortcuts .Its source can be decoupled from target. WPF provides more than 100 built in command. These commands can be integrated to WPF controls which has command property like button, MenuItem, etc. EditingCommand, ComponentCommand, NavigationCommand, AplicationCommand are some of the classes which organise and expose built in commands.You can create customized Routed commands by implementing ICommand. You need to create static instance of type RoutedCommand. Then you need to implement _CanExecute and _Executed for the same.