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

OnBackButtonPressed Question

$
0
0

I have two pages, page 1 is a page that inputs one piece of information and displays a database listview of the resulting information, and page two retrieves data from an xml page and inserts the appropriate information into the database,
I have been using OnBackButtonPressed() to pop the page stack as shown below

protected override bool OnBackButtonPressed()
        {
            Device.BeginInvokeOnMainThread(async () => await Navigation.PopAsync());            
            return true;
        }

Is there any way to tell page 1 that it has been brought back up from a page that has had the back button pressed? This would be to refresh my database and listview on page 1.

I know I can push a page OnBackButtonPressed, but I do not want to have stacks of the same page.

Thank you.


Viewing all articles
Browse latest Browse all 77050

Trending Articles