Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to pause a method till getting response from Rg.Plugins.Popup?

$
0
0

I am using Rg.Plugins.Popup for a simple confirmation popup before deleting an item from the list like "Are you sure you want to delete Item1 from the list?".
I need to know how to pause the deleting method till it gets the confirmation from the popup.

 private async void MenuItem_Clicked_1(object sender, EventArgs e)
        {

            var menuItem = sender as MenuItem;
            var item= menuItem.CommandParameter as Item;


            var page = new popupAlert(item);
            await Navigation.PushPopupAsync(page);

// Pause here
             myList.remove(item);
        }

Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>