Creating the ViewModel
Create a MenuViewModel
class in the ViewModels
folder in the MvxFormsMasterDetailDemo.Core project. Replace the content with the following code:
It has a MenuItemList
property to store some menu items. For the simplicity, there are only two strings: Contacts
and Todo
. We also need to inject the instance of IMvxNavigationService
in the constructor.
Last updated