I’m currently giving a class on WPF and I am in the midst of introducing some of the base concepts. This far, we’ve covered layout and styling as well as touching binding. Now, the time to introduce Model-View-ViewModel (MVVM) had come.
It was actually a quite uplifting experience, since I chose to take the approach to deviate from WPF for a few hours to introduce an entirely new concept, Design Patterns. I believe that this turned out to be as much a success as a challenge.
Albeit most of the time considered an anti pattern, I chose to start by introducing one of the simplest design patterns, Singleton.
Instead of getting into too much detail, this time I’ve chosen to let two of my students do the walking. Please have a look at what Daniel and Iris think about getting acquainted to design patterns in general and MVVM in particular.
I’m guessing we will see a few of the WPF design patterns explained and put to use in this section soon.