Improving the data model and service
After introducing the MVVM pattern, data binding, and the MVVM Toolkit, we have the fundamental knowledge of how to use data binding. In the rest of this chapter, we will explore advanced topics about data binding. We will discuss how to bind to collections first and then we will introduce custom views. Using custom views, we can make XAML code cleaner and more concise.
To examine these topics, a more intricate model layer is required. Instead of creating a hypothetical model layer, we’ll work with the actual model layer in our app, which includes two .NET libraries: KPCLib and PassXYZLib.
To introduce the model layer of our app, let us review the use cases again. We are developing a cross-platform password manager app that is compatible with the popular KeePass database format. We have the following use cases:
- Use case 1:
LoginPage
– As a password manager user, I want to log in to the password manager app so that...