What is WCF RIA Commanding? Is that even the proper name?
I have a silverlight application in which I want to use command binding to call methods on the webserver; however I’m unsure as to how to go about creating such a class and method so that it can be picked up by RIA and be used in the silverlight XAML; whiout any code behind.
a ‘command’ in the context of a Silverlight (or WPF) application is a class that implements the
ICommandinterface.It is used to bind code in ViewModels to controls in Views.
Just about all the decent MVVM frameworks contain them (PRISM has DelegateCommand, MvvmLight has RelayCommand, etc) but it’s not too hard to write your own…
Example usage:
in XAML:
then in the ViewModel (bound to the View’s DataContext)