|
On November 30, 2010 I did a presentation on "MVVM for Silverlight 4"
at the Sacramento .Net User Group:
Title: Introduction to using the MVVM pattern with Silverlight
Description: Introduction to Silverlight programming using the
Model-View-ViewModel (MVVM) pattern for line-of-business applications.
MVVM can make Silverlight applications more resilient when changes
occur, more unit testable and make it easier for coders and
UI-designers to work in parallel.
Thumbnails for two of my main slides:
Slide: Architecture diagram
Conventional code-behind vs. MVVM.
Slide: MVVM, WCF-RIAS, Line-of-business demo app.
I start it as a conventional app and convert it to MVVM.
The whole
PowerPoint deck.
This is the
source code (VS2010 SL4 solution) for the demo application
used during the presentation. The app is a simple Silverlight
4 line-of-business app that uses WCF RIA Services, Entity Framework
4 and Sql Server. I take the app through three steps.
First I build it using the standard conventional, non-MVVM code-behind
pattern with a DomainDataSource. Second I convert it to
use the MVVM pattern with the ViewModel containing the WCF-RIAS
DomainContext and a PagedCollectionView. Finally I add
unit and integration tests to the MVVM-ized app using a Silverlight-Unit-Test-Framework
project.
|