public ToDoTaskDetailPage() { InitializeComponent(); var item = new ToDoTask { Description = "This is an task description." }; viewModel = new ToDoTaskDetailViewModel(item); BindingContext = viewModel; }
public ToDoTaskDetailPage(ToDoTaskDetailViewModel viewModel) { InitializeComponent(); BindingContext = this.viewModel = viewModel; }