コード例 #1
0
 async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     var todoItem = e.SelectedItem as TodoItem;
     var todoPage = new TodoItemPage
     {
         BindingContext = todoItem
     };
     await Navigation.PushAsync(todoPage);
 }
コード例 #2
0
		async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
		{
			var todoItem = e.SelectedItem as TodoItem;
			var todoPage = new TodoItemPage
			{
				BindingContext = todoItem
			};
			await Navigation.PushAsync(todoPage);
		}
コード例 #3
0
		async void OnAddItemClicked(object sender, EventArgs e)
		{
			var todoItem = new TodoItem()
			{
				ID = Guid.NewGuid().ToString()
			};
			var todoPage = new TodoItemPage(true);
			todoPage.BindingContext = todoItem;
			await Navigation.PushAsync(todoPage);
		}
コード例 #4
0
        async void OnAddItemClicked(object sender, EventArgs e)
        {
            var todoItem = new TodoItem()
            {
                ID = Guid.NewGuid().ToString()
            };
            var todoPage = new TodoItemPage(true);

            todoPage.BindingContext = todoItem;
            await Navigation.PushAsync(todoPage);
        }