Michael Crump bio photo

Michael Crump

Works @Microsoft on Windows

Twitter Google+ LinkedIn Github Youtube Flickr

Intro to MVVM

The Model-View-ViewModel pattern provided a clean separation of concerns between the user interface controls and their logic. Several reasons you would want to implement it are:

  • A clean separation between application logic and the UI will make an application easier to test, maintain, and evolve.
  • Rich data binding and dependency properties provides the means to connect a UI to a View Model.
  • It enables a developer-designer workflow. When the UI XAML is not tightly coupled to the code-behind, the designers can work without independently.
  • It increases application testability. Moving the UI logic to a separate class that can be instantiated independently of a UI technology makes unit testing much easier.

It should be no surprise that users of Xamarin will want to use this in their next Xamarin.Forms projects. In this video, I’ll show you step-by-step how to use MVVM in a new Xamarin.Forms project.

Wrap-up

I hope this clears things up and don’t forget to leave comments in the YouTube comment section. Feel free to email me any question that you would like answered at michael@michaelcrump.net.