The project consists of a DLL, which is referenced by your Silverlight Project, a Service Wrapper class Template, a Design Data class Template that is used to provide blendable sample data in your project, and a series of snippets to help you quickly build out the design data and service classes.

What you need to know to get started

There are several classes in the DLL currently - here are the ones you need to know to get started (consider the rest internal or advanced topics):
  • Classes in SL.MVVS.RIA
    • ContextManager - which provides Management functions for a DomainContext class. It provides a common LoadData and SaveData function, which wrapper the Domain Context, and provide common error handling, thread-safety, batching, and deletion processing (which is currently omitted from RIA Services)
    • Notifications - Static Class that you can send/receive notifications to & from your ViewModels. Be sure to use the:
    • WeakEventHandler<T> wrapper class to subscribe to the ReceiveNotification Event. This handler just wrappers your event handler, so that ViewModels can live and die on their own accord.
    • ViewModelCommand - This is your basic implementation of the ICommand interface all built-out and ready to be used in your ViewModels.
  • Templates are all listed under "MVVM-S". Just type this in the Search box from your Add New Item dialog in Visual Studio 2010.
    • Service Template - You will need 1 Service per DomainService class in your web project. (Note: it would not be wrong to have more than 1 service per Domain Service).
    • DesignData Template - For each Service, you should also create a DesignData class from the template to correspond to the service if you intend to create a blend-able project.
    • ViewModel Template - Typically for each Page or Control, or View in your project, you will create a ViewModel, which in turn consumes the data provided from your service class.
  • Snippets - To make this all very easy and fast, 6 code snippets are provided, which speed up the key elements of building out your classes. Learn to use these (as documented in notes in each template), and you will be amazed at just how fast you will built out your entire MVVM design, with a blendable solution.

Walkthrough

This will walk you through creating your first Silverlight + RIA Services application using the MVVM-S toolkit

  1. Walkthrough - Step 1 - Setting up the Application
  2. Walkthrough - Step 2 - Client Side Models
  3. Walkthrough - Step 3 - Design-Time Data (for Blendablility)
  4. Walkthrough - Step 4 - Client Services
  5. Walkthrough - Step 5 - View Models
  6. Walkthrough - Step 6 - Binding and Views
  7. Walkthrough - Step 7 - Notifications of Global Events

Questions? Comments! Please post them in the discussions area, and I will definately get back to you.

Last edited Aug 29, 2010 at 7:26 PM by rposener, version 20

Comments

No comments yet.