Summary
In this chapter, we learned about the MVVM pattern and applied it to our app development. One key feature of the MVVM pattern is data binding between the view and ViewModel. We delved into data binding and utilized it in the implementation of our app.
To delve deeper into the complexities of data binding, we examined binding to collections and the utilization of data binding in custom views. By employing data binding and custom views, we’re able to refactor XAML code, resulting in a cleaner and more concise codebase.
To demonstrate advanced data binding usage, we need a more intricate model layer. We enhanced the model in this chapter by introducing two packages – KPCLib and PassXYZLib. We replaced the model in the sample code with the models found in these two packages. Subsequently, we updated the UIs of ItemsPage
and ItemDetailPage
to reflect the changes made to the model.
In the next chapter, we will refine our user stories and continue improving...