Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET WPF Commands .NET4
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 22-Aug-12 19:24pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
Pranav_Parashar at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,532
1 OriginalGriff 5,976
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,550


Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100