This project has moved. For the latest updates, please go here.

MVVM Light and RIA WCF Service

Apr 13, 2010 at 8:44 PM


I use a RIA WCF service on the server side. It's a good idea to work with this "MVVM Light Toolkit"?

Some body have a sample project?


Thanks for your help

Apr 14, 2010 at 7:25 AM


If you use WCF RIA services programatically on the client (invoking queries on the Domain Service), then it makes totally sense to include MVVM into your Silverlight application. You will gain all the advantages (separation between view and model, blendability, testability of your viewmodel). Of course, this does not apply if you generate the UI using the designer, since this implies a direct link between your XAML and the underlying model.

To add MVVM Light to a WCF RIA services application, you need to proceed manually. I am currently writing a tutorial on how to do that and hope to publish sometimes soon. In essence, you need to reference the DLLs, add a ViewModelLocator to the global resources, add your viewmodels, and you are good to go.



Aug 30, 2010 at 9:57 PM

Laurent, do you have this tutorial yet?  I am learning mvvm light and I need to try to get it working with WCF/Ria services.  I'm still a little green with both of them so any help you could provide would be greatly appreciated.  Again, nice work with the toolkit.



Sep 1, 2010 at 4:42 PM

A template would be nice for silverlight mvvm using wcf ria services or creating a mvvm template based off the silveright business application template :)

Dec 14, 2010 at 3:09 PM
Edited Dec 14, 2010 at 4:52 PM

Laurent you have helped to change the way developers create applications by introducing MVVM Light toolkit

and the Kung Fu Implementation   is the best i have seen, is a complete framework to build Business Applications.. it is the way to go.. super complete

But "I think" it could be way to complex for someone who just need to use MVVM for the ViewModel, Commands, Mock Data, DesignerData and to connect to Ria Services, especially the Ria Switch is the one where people makes MVVM complex

The tutorial you mention about adding Ria to a MVVM Light , coming from you means simple, fast , excellent and best practices!!  is what we all are waiting for ...

Thank you for this awesome MVVM Toolkit