Exploring MVVM and Data Binding
In the last chapter, we learned how to build user interfaces (UIs) using XAML. In this chapter, we will learn how to use the Model-View-ViewModel (MVVM) pattern and data binding in .NET MAUI app development. MVVM is a UI design pattern for decoupling UI and non-UI code. data binding is the key technology that MVVM relies on. We will improve the design of our app using MVVM and data binding. We will also replace the data model using open source libraries.
The following topics will be covered in this chapter:
- Understanding MVVM and MVC
- Data binding
- Improving the data model and service