using TodoDetails.ViewModel; namespace TodoDetails { public partial class MainPage : ContentPage { public MainPage(TodosViewModel viewModel) { InitializeComponent(); BindingContext = viewModel; } } }