4
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
Technical requirements
To test and debug the source code in this chapter, you need to have Visual Studio 2022 installed on your ...
Get .NET MAUI Cross-Platform Application Development 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.