Reputation: 35
I am will open page 2 from page 1. I will edit some info on page 2, then use Navigation.PopAsync() and I want to trigger method on Page 1 to refresh page 1 data. How can I do that in xamarin?
Upvotes: 0
Views: 114
Reputation: 10958
You could do the refresh on Page1 via triggering the OnDisappearing
on Page2.
Page2:
async void Button_Clicked(object sender, EventArgs e)
{
await Navigation.PopAsync();
}
protected override void OnDisappearing()
{
base.OnDisappearing();
//refresh();
}
Upvotes: 1