Summary
In this chapter, we learned about the architecture behind the MVVM architecture pattern, as well as the different components and roles that they play. You then learned how to create an abstract BaseViewModel
class that contained various properties with additional class methods.
We then created various ViewModel classes that inherited the properties and methods from our BaseViewModel
class, and then proceeded to make some additional changes to each of the user interface ContentPages using XAML. Next, we updated each of the code-behind files for each of our ContentPages in order to implement the ViewModels so that the bindable
object properties defined within the XAML could be bound to those properties defined within the associated ViewModel.
Lastly, you learned how to work with ContextActions
and specified the associated Clicked
method event for each menu item within the WalksMainPage
XAML. You also implemented the instance methods to the MenuItems
when they were clicked, before running...