Native Client

W17 Programming with the Model-View-ViewModel Pattern


3:15pm - 4:30pm

Level: Intermediate

Miguel Castro



Melvicorp LLC

MVVM became popular with WPF, but the pattern is applicable in many platforms, including the Universal Windows Platform and Xamarin Forms. If you notice a commonality here in that all these use XAML, you would be correct. The ideas and goals around the MVVM pattern seem to vary from person to person, but the one thing they all share is a reusable and testable point of binding for XAML views. This session will show you what MVVM is, 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, it is at the root of many web frameworks like Angular, Knockout, and Aurelia, so you'll be able to take this knowledge with you on the road to use in other platforms. And don't forget, XAML is what you use in Xamarin Forms too.

You will learn:

  • The importance of the MVVM pattern
  • All about XAML data binding
  • About unit testing view-models