mvvm - What is WCF RIA Commanding -


What is the WCF RIA commanding? Is this also the proper name?

I have a Silverlight application in which I want to use a compulsory command to call methods on the webserver; Although I am unsure about how to go about making such a class and method so that it can be taken by RIA and silver can be used XAML; Behind any code.

In the context of a Silverlight (or WPF) application there is a 'command' ICommand applies the interface.

It is used to bind the code in ViewModels to control the approaches.

Just about all the decent MVVM frameworks them (Daylight Commands, MVVMlight Relay Commands, etc. in Prism), but writing your own is not very difficult ...

Examples Usage:

In XAM:

  & lt; Button command = "{Binding GetCommand}" content = "go" />   

then see in the modell (bound for datacontact of the view)

  get public icedmond GetCommand {(if _getCommand == blank) _getCommand = new GetHandler, CanGetPredicate; Return _get Commands;}} Private Zero GetHandler () {// Work here - Call in server, or whatever} Private bool CanGetPredicate () {// It says or does not return To work out if valid (someRule == true); // or whatever)    

Comments