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

Updating data when returning to a page

$
0
0

I I have the following (common?) situation:

A main page that displays a list of people

An Add people page called from the main page (Navigation.PushAsync(new AddPeoplePage() )

When I return from the Add People page to the Main Page, the list is not updated. I'd like to register for an event to tell me when I return to the page so that I can update the list.

For now, I've changed the handler for my Submit button from calling PopAsync() to calling PushAsync(new MainPage()). This works, but I have to remove the navigation bar on MainPage and it seems like a hack.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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