Chapter 2. MVVM and Data Binding

In this chapter, we will look at the Model-View-ViewModel (MVVM) pattern and the MVVM elements that come with the Xamarin.Forms toolkit, and how we can expand on them to truly take advantage of the power of the pattern. As we dig into these topics, we will apply them to the TripLog app that we started building in Chapter 1, Getting Started.

In this chapter, we will cover the following:

  • Understanding the MVVM pattern and data binding
  • MVVM in the Xamarin.Forms toolkit
  • Adding the MVVM pattern and data binding to the Xamarin.Forms mobile app created in Chapter 1, Getting Started

Understanding the MVVM pattern

At its core, MVVM is a presentation pattern designed to control the separation between user interfaces and the rest ...

Get Mastering Xamarin.Forms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.