protected async void OnItemEdit(object sender, EventArgs e) { var btn = sender as MenuItem; BudgetCategoryEdit editor = new BudgetCategoryEdit(); editor.BindingContext = btn.BindingContext; //await Navigation.PushModalAsync(editor); await Navigation.PushAsync(editor); }
//protected async void OnNewItemClicked(object sender, EventArgs e) //{ // await vm.AddNewBudgetCategoryAsync(); // BudgetCategoryEdit editor = new BudgetCategoryEdit(); // editor.BindingContext = vm.SelectedBudgetCategory; // await Navigation.PushAsync(editor); //} protected async void btnNewCategory_Clicked(object sender, EventArgs e) { await vm.AddNewBudgetCategoryAsync(); BudgetCategoryEdit editor = new BudgetCategoryEdit(); editor.BindingContext = vm.SelectedBudgetCategory; await Navigation.PushAsync(editor); }