Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to call method from main page from popup window generated by main page

$
0
0

In the main page, I create a popup window using
void Button_Add(object sender, System.EventArgs e)
{
PopupNavigation.Instance.PushAsync(TaskControl);
}

Afterwords, the popup page asks some questions and fills in text, etc, and finally there is a button to hit "Okay".

Once that button is pressed, it should let my main page know that the popup page is done and the main page then needs to call its own method. Does anyone know how to have my popup page communicate to my main page that it needs to call its method when the popup page button has been pressed?

This is the method that my popup page runs when the button is pressed

private void TaskFinishAdd(object sender, EventArgs e)
{
PopupNavigation.Instance.PopAsync(true);
}


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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