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

Asynchronously getting values from a navigation page

$
0
0

I have ContentPage X, under a NavigationPage, with some form data to be filled out. I'd like to have a button which pushes a new page B onto the stack (easy) and then takes the data entered into B and pulls it back to A and uses it to fill in some additional form data where necessary.

The first way I can think of how to do this is to have page B take some variables using the out keyword in its constructor, and having some class variables in A which will work with said variables once the page reappears. That seems sloppy - is there a better way here?


Viewing all articles
Browse latest Browse all 58056

Trending Articles