Native Client

TH10 Programming with the Model-View-View-Model Pattern


11:00am - 12:15pm

Level: Intermediate

Rockford Lhotka



MVVM became popular with WPF, but the pattern is also applicable in many platforms, including the Universal Windows Platform as well as Xamarin Forms. If you notice a commonality that all these use XAML, you would be correct. The ideas and goal around the MVVM pattern seem to vary from person to person, but the one thing that they all share is that it provides a reusable and testable point of binding for XAML views. This session will show you what MVVM is and how to use it and what to put in it, in order to get maximum potential out of XAML binding. You'll see examples in both WPF and UWP applications. This pattern is so popular and powerful, though, it's at the root of many web frameworks like Angular, Knockout, and Aurelia. You'll be able to take this knowledge with you on the road to use in other platforms.