
MVVM
Get flash to fully experience Pearltrees
WPF and MVVM tutorial 01, Introduction.
With Microsoft WPF technology, a new pattern is born and is going to be called MVVM (Model View ViewModel). This pattern is an hybrid from the old MVC and the old MVP patterns. Why a new pattern for the presentation? First of all WPF technology is giving us a kind of technology that can completely change the approach to design and code the UI. With the VMMV we can completely design an agnostic UI that doesn’t know the Model we are going to pass to it.WPF and MVVM tutorial 02, The model.
WPF and MVVM tutorial 03, The user repository.
Before starting to view in depth our model, or to design the views, I want to complete the DAL layer. Now that we have our unit of work implementation and our data context we need to implement a couple of repositories. If you want to view how it should work a repository, I suggest this interesting article from Martin Fowler .WPF and MVVM tutorial 04, The Commands.
As we saw in the previous posts, a view model should be an abstract implementation of what the view needs to show about the model. We should implement an observable collection of something, we should implement an INotifyPropertyChanged interface and we should have a collection of RelayCommands . For these reasons, it simply to understand that we need a basic abstract ViewModel class, just to recycle some code. The Basic View Model. 1: namespace MVVM.ViewModel { 2: public abstract class ViewModel:INotifyPropertyChanged,IDisposable {
WPF and MVVM tutorial 05, The basic ViewModel.
WPF and MVVM tutorial 06, start up form.
Today we are going to create the start-up form of our project and use the first ViewModel to run the application logic. The result we want to obtain will be: The View Model for the Startup form. In our project, let’s go to the ViewModel section and create a new class.WPF and MVVM tutorial 07, the List search.
Jason Dolinger on Model-View-ViewModel » Lab49 Blog
MVVM has been a trending topic lately. And why shouldn’t it be? People want to build great WPF/SL applications and want guidance on how to build them using the framework’s strengths.

