I just came across perhaps one of the best tutorials of the Model-View-View-Model pattern by Jason Dolinger here. In this demo. Jason covers a number of topics including:
- Benefits of MVVM
- MVVM Definition and Usage
- Binding: Individual properties and ObservableCollections
- MVVM Notification
- Advantage of MVVM with Unit testing
- Using the Unity Container
- Advantage of MVVM when Using Expression Blend
- Adding Row-Level View Models
What I found particularly useful about Jason’s tutorial was that he begins with the typical, naive approach of creating WPF/Silverlight applications and illuminates their shortcomings. He then springboards into illustrating the proper way to design applications using the MVVM pattern. I should note that in this tutorial Jason is developing a WPF application. However, as this blogger states, the practices shown also apply to Silverlight applications.
If you are creating Silverlight or WPF application, understanding the concepts of this tutorial are ABSOLUTELY ESSENTIAL.