Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is difference between these WPF Commands:

Routed Command, Routed UI Command, Relay Command and ICommand.

While developing application of applying MVVM how to choose which one should be used.
Posted

1 solution

The ICommand is a interface that is implemented in bot Routed Command and Routed IU Command, see here:
http://msdn.microsoft.com/en-us/library/system.windows.input.icommand.aspx[^]

This would mean that the Routed Command and the Routed UI Command is simply two different classes of implementing the command interface in. Take a look in the documentation:
http://msdn.microsoft.com/en-us/library/system.windows.input.routedcommand.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.input.routeduicommand.aspx[^]

Here is an articlw from Josh Smith on the MVVM pattern that might also be useful to you:
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx[^]
 
Share this answer
 
Comments
Versatile49 23-Aug-12 2:04am    
Well I am looking towards if someone can pin point exact things. the links are general introduction that I had founded and went through. But there are no specific usage distinctions that I am able to find.
One example is The difference between a RoutedUICommand and RoutedCommand is that RoutedUICommand includes a Text property. But again here I do not know what wonders this Text property does in RoutedUICommand.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900