Toolkit Sample Applications

There are two categories of samples:

  1. SimpleMvvm-Main
  2. SimpleMvvm-Other

The Main Sample consists of a multi-part series to showcase an end-to-end Silverlight business application.  The first part in the series simply contains a Silverlight front-end that communicates with a basic WCF service with a Data Access Layer that retrieves items from the Northwind sample database using the Entity Framework.  T4 templates are used to generate POCO classes both for the service and the client.  This first part only performs data retrieval and does not save entity changes back to the database.  Entity persistence will be demonstrated in a subsequent part that uses WCF RIA Services.  Future parts will also include the use of Managed Extensibility Framework (MEF) for dependency injection and perform multi-page navigation.  Part 1, however, does include the use of modal dialogs with two-way communication between views and view-models, and has an example of editing individual items based on IEditableDataObject with object cloning.

Other Samples consist of smaller stand-alone Silverlight applications which each demonstrate a single feature of the Simple MVVM Toolkit.  The Getting Started sample accompanies the documentation’s Getting Started section and shows how you can get up and running very quickly with MVVM using the toolkit’s Visual Studio item templates, code snippets and helper classes.  Here is a list of the other samples contained in this section:

1) Enum List: Converting an enum into a list that can be bound to a combo box
2) Associate Properties: Linking a property on the view-model with one or more model properties so that UI elements bound to the view-model are automatically updated when dependent properties in the model are changed
3) Async: Executing a long-running task asynchronously on a worker thread while firing events that update the UI
4) Messaging: Using the MessageBus class to enable loosely-coupled communication among view-models
5) Navigation: Performing page navigation driven by logic in the view-model
6) Dependency Injection: Using Managed Extensibility Framework (MEF) to inject service agents into view-models for unit testing
7) WPF Sample: Shows how to use the toolkit with a Windows Presentation Foundation application
8) Windows Phone 7 Sample: Shows how to use the toolkit with a WP7 app
9) WCF RIA Services Sample: Shows how to use the toolkit in conjunction with WCF RIA Services

Last edited Mar 12, 2011 at 5:49 PM by tonysneed, version 5

Comments

hjyanghj Oct 16, 2011 at 9:51 AM 
Tony,
In Messaging sample, I observed a strange phenomenon. Below are the steps.
1. Execute the program.
2. Click the "Increase Orders" button, when "Bill Gates" item is selected.
3. "Approve Increase" window show up, click "Yes" button.
4. MessageText "Order quantity of 1000 approved for Bill Gates" DO appear under the "Increase Orders" button.
5. Click "Increase Orders" button again, this time the MessageText should be disapeared, but is is STILL appear there.

My question is:
In your IncreaseOrders method, there is a statement "MessageVisibility = Visibility.Collapsed;", why has it no effect at all?