0
kicks
Kent Boogaart talks about MVVM Infrastructure: ViewModel
This post is part of a short series I am doing on MVVM infrastructure. In this series, I will share some thinking and code that has helped to produce cleaner, simpler MVVM code in my applications.
To kick this series off, I'm going to show you a base class called ViewModel. This is by no means a complex class, but it's a fantastic time-saver when doing MVVM.
I had a few concerns at the fore-front of my mind when designing this class. Firstly, I wanted it to be extremely simple to use. When inheriting from it, I didn't want to have to worry about implementing specific constructors in my subclass or providing implementations of abstract members. It should be brain-dead simple to extend the ViewModel class.