Ejemplo n.º 1
0
        private async void DeleteButton_Clicked(object sender, EventArgs e)
        {
            bool answer = await DisplayAlert("Confirmation", "Save changes?", "Yes", "No");

            if (answer == true)
            {
                MenuItem menuItem    = sender as MenuItem;
                var      contextItem = (Category)menuItem.BindingContext;
                await viewModel.DeleteCategory(contextItem);
            }
        }