Building a complete MVVM style application
Now that we have our own (small) framework to assist us with building MVVM applications, it's time to actually build one. Along the way we may find missing features in our framework, but that's ok; it's a normal way for frameworks to evolve.
Getting ready
Run Visual Studio and open the CH07.CookbookFramework
project. This is a long recipe, but hopefully the end result would be worth it (in terms of understanding, not visually).
How to do it...
We'll create a sample blog viewer application using the simple framework we just built:
Add a new WPF project to the current solution, named
CH07.BlogReader
. This will be a fictitious blog reader application with support for adding posts and comments.Add a reference to the
CH07.CookbookMVVM
project.Create three project folders named
Model
,Views
, andViewModels
. The project tree looks as follows:We'll start with the models. These will be simple classes that represent some blog properties. Add a class named
BlogComment...