Applying MVVM in Xamarin.Forms 4 Applications
Learn how to create your Xamarin.Forms applications using the MVVM (View Model) pattern to create a more testable and easy-to-maintain code base.
What you'll learn
Xamarin.Forms allows developers to build Android and iOS mobile applications with a shared code-base. Because Xamarin.Forms allows sharing the UI code as well, a high level of code reuse is possible to create a more testable application, and that’s something that most enterprises look for when building mobile apps. In this course, Applying MVVM in Xamarin.Forms Applications, you’ll learn about building applications using MVVM. First, you’ll explore the pattern and the different building blocks. Then, you'll refactor a simple application to use MVVM. Next, you’ll see how to introduce common tasks into the application including navigation and showing dialogs. Finally, you’ll learn how you can make use of the MVVM pattern to allow for easier unit testing, proving the fact that MVVM-based applications are easily testable. After watching this course, you’ll have a good understanding of the concepts of MVVM as used to build testable Xamarin.Forms apps.
Table of contents
- Module Introduction 1m
- Building the Applications Using MVVM 1m
- Demo: Creating the Model 4m
- Creating the View Model Classes 3m
- Demo: Creating the View Models 6m
- Demo: Creating the View 4m
- Linking the View and the View Model 2m
- Demo: Linking the View and the View Model 3m
- Adding a View Model Locator 1m
- Demo: Adding a View Model Locator 3m
- Summary 1m