Frame GoBack event with parameter

I am creating a XAML Metro application using C # and have some thoughts. I use two pages, MainPage and OtherPage.

When I click a button in MainPage, I switch to another with

this.Frame.Navigate(typeof(OtherPage), AndAnObjectIsSentTo);

To return from OtherPage to MainPage, I have a (cancel) button with the code Frame.GoBack();

What I want to achieve when I return is to send the parameter and (EDIT: not "reload", but just run the function) MainPage (the page I will return to). How should I do it?

+4
source share
2 answers

GoBack does not pass a parameter, so you need to transfer data through an external channel.

, Frame.Navigate. , , , , OnNavigatedTo NavigationMode.Back.

, Frame.Navigate, . GUID . .

, , , .

+2

, . .

?

-2

All Articles