Greetings, I am starting in xamarin forms and I have the following problem
I have two pages page1 and page2 of type NavigationPage, on page1 I show a series of data and information to the user and I can go with a button to page2 which is a kind of form that the user can fill out but when filling in some fields on page1 they should be updated the doubt is the following how can I refresh the page1 from page2? , on page1 I have a function that refreshes the fields that I want to update by printing these changes on the screen. Is it possible to call that function from page2? I try to do the static function but I get an error in the elements of the xaml on page1 that I want to change
Another question I have is why, if I surf, do I have a lot of navigation from page1 to page2 and vice versa does the app end?
to go from page1 to page2 use:
await ((NavigationPage) this.Parent) .PushAsync (new Page2 ());
and to go from page2 to page1 use:
await ((NavigationPage) this.Parent) .PushAsync (new Page1 ());