Beispiel #1
0
        private void Edit(object sender, EventArgs e)
        {
            var toDoItem = TasksView.SelectedItem as TodoItem;
            var toDoPage = new AddTask {
                BindingContext = toDoItem
            };
            var nav = new NavigationPage(toDoPage)
            {
                BarBackgroundColor = Color.White
            };

            Navigation.PushAsync(nav);
        }
Beispiel #2
0
 private async void Add(object sender, EventArgs e)
 {
     var page = new AddTask {
         BindingContext = new TodoItem {
             DeadLine = DateTime.Now
         }
     };
     var nav = new NavigationPage(page)
     {
         BarBackgroundColor = Color.White
     };
     await Navigation.PushAsync(nav);
 }