Tuesday, November 03, 2009

VM Workshop – The multifactor, multifaceted, open source, example MVVM app in Silverlight, WPF, WebForms, ASP.NET MVC, Ajax, WinForms flavors (all in both C# & VB too)

Craig Shoemaker - Learning Model View ViewModel and Presentation Model

“I recently posted details on a new open source project I have started that aims to help you learn the intricacies of using Model View ViewModel and Presentation Model. The project is called VM Workshop and it’s initial offering includes demonstrations on how to implement a simple list/edit/persist scenario using the following UI platforms:

  • Silverlight
  • WPF
  • WebForms
  • Ajax
  • WinForms

Code is available in C# and VB.NET.


Craig Shoemaker - VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms

“For some reason the family of design patterns that exist around the Model View Controller pattern seem to be an elusive band of characters. The first time I  encountered Model View Controller I studied the text hard trying to understand how the Strategy, Observer and Composite patterns worked together to accomplish some goal that – try as I might - remained fuzzy. Somehow I have a sense that I am not alone.

Introducing VM Workshop

The VM Workshop is a simple reference application demonstrating the Model View ViewModel and Presentation Model pattern in a number of different UI platforms.

…and as an open source project, you are invited to help add examples of how to deal with a myriad of different UI use cases!

The purpose of the VM Workshop is to be a working programmer’s reference, not an exposition in pattern purity. Therefore you may see small details that may not fit the textbook definition of the patterns, but the point is to provide a template for effective pattern use. For instance there is an example in ASP.NET MVC is included in VM Workshop. Obviously the pattern being implemented is Model View Controller, but the construction of a “view model” class is still relevant in this context. While referring to ViewModel class in a ASP.NET application may be technically inappropriate, I use the term “view model” to interchangeably refer to a ViewModel or Presentation Model class for simplicity.

image …”

VM Workshop


The one and only Craig Shoemaker has done it again, this time with a VERY cool project. He’s podcast before about taking a similar project, building it using MVVM for WPF and then for Silverlight (Hands-On Model-View-ViewModel (MVVM) for Silverlight and WPF), but this time he has GONE TO FAR!

He’s taken a similar project and MVVM’ed it in C# and VB for FIVE different platforms.

All I can say is, Wow…

No comments: