// item list click public void OnSelect(object sender, SelectedItemChangedEventArgs e) { // get the item selected var model = (TodoItem)e.SelectedItem; // create a new details view with the item var view = new TodoDetailsView (model); // tell the navigator to show the new view Navigation.PushAsync (view, true); }
// menu item click public void OnAdd(object sender, EventArgs e) { //create a new model var model = new TodoItem (); //create a new view var view = new TodoDetailsView (model); // tell the navigator to show the new view Navigation.PushAsync (view, true); }
// item list click public void OnSelect(object sender, SelectedItemChangedEventArgs e) { // get the item selected var model = (TodoItem)e.SelectedItem; // create a new details view with the item var view = new TodoDetailsView(model); // tell the navigator to show the new view Navigation.PushAsync(view, true); }
// menu item click public void OnAdd(object sender, EventArgs e) { //create a new model var model = new TodoItem(); //create a new view var view = new TodoDetailsView(model); // tell the navigator to show the new view Navigation.PushAsync(view, true); }