Pradeep Yadav
What is Routed Command in WPF?
By Pradeep Yadav in .NET on Jun 19 2017
  • Pradeep Yadav
    Jun, 2017 19

    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.

    • 0

Most Popular Job Functions