コード例 #1
0
 // 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);
 }
コード例 #2
0
 // 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);
 }
コード例 #3
0
        // 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);
        }
コード例 #4
0
        // 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);
        }