Creating the ViewModels
Add two new files named as ContactsViewModel and TodoViewModel in the ViewModels folder of MvxFormsMasterDetailDemo.Core project. Make them to inherit from MvxViewModel class respectively:
1
using MvvmCross.ViewModels;
2
3
namespace MvxFormsMasterDetailDemo.Core.ViewModels
4
{
5
public class ContactsViewModel : MvxViewModel
6
{
7
}
8
}
Copied!
1
using MvvmCross.ViewModels;
2
3
namespace MvxFormsMasterDetailDemo.Core.ViewModels
4
{
5
public class TodoViewModel : MvxViewModel
6
{
7
}
8
}
Copied!
Last modified 2yr ago
Copy link