A series of articles about implementing the Model-View-View-Model (MVVM) architectural pattern for Silverlight/WPF. MVVM in itself is not a complex pattern, however having a framework can reduce the work required to accomplish more advanced scenarios. For example, communicating between modules in a loosely coupled way requires some sort of event framework. Prism provides this.
You may also interested in –> Prism for Silverlight 2: Taking ‘Hello World’ to a Whole New Level
- WCF integration
- Design-time data binding
- Independent, decoupled modules
- Commanding support
1. The 1st half of this article will compare and contrast MVC, MVP, and MVVM, and suggest which pattern to use based on your technology of choice and the problem that you are trying to solve. The 2nd half will be an overview about how MVVM could be used in Silverlight.
Read more here -> CodeProject: Model View Controller, Model View Presenter, and Model View ViewModel Design Patterns. Free source code and programming help
2. Model-View-ViewModel (better known by its super hero alias of MVVM ) is a great pattern to use with Silverlight and WPF. Here is a 5 minute perspective on MVVM.
1 reason MVVM works really well with XAML based applications is because of the powerful XAML binding features. This allows the View (the presentation of to the user) to be separated from the data and the logic. The View can be designed in Expression Blend while the ViewModel can be developed in Visual Studio .NET. It allows for the presentation to be separated very easily. This is just 1 reason, albeit a powerful one.
Read more here –> http://johnpapa.net/silverlight/5-minute-overview-of-mvvm-in-silverlight/
To make development of WPF and Silverlight applications according to the Model-View-ViewModel pattern easier, here is a small toolkit which should speed up the creation of such applications by automating certain tasks.
Via MVVM light toolkit (Silverlight edition) posted
The toolkit includes:
- A Visual Studio 2008 Project Template
- Silverlight Command Implementation
- ViewModelBase that implements INotifyPropertyChanged interface
Download : SilverlightModelViewApplication.zip (15 KB)
Michael Sync » An Early Look at Silverlight Model-View-ViewModel Toolkit 1