0
votes

I am having multiple textbox in page 1, after i fill the textbox i click next button to navigate to page 2,for navigation i used this way, "this.Navigationservice.Navigate(new Uri("page2.xaml"),Urikind.Relative))",it navigates to page2, after i fill the page 2 and press done button , it navigates to previous page(i.e., page1),in done click i followed the same way for navigation to "this.Naviagtionserice.navigate(new uri("page1.xaml"),Urikind.Relative)),it return back to page 1, but in page 1, entered textbox text fields gets erased only empty textbox showing without entered content in it how can i achieve this task? pls suggest me..

Regards, Lokesh.J

1

1 Answers

0
votes

To return to the previous page, use:

NavigationService.GoBack();

NavigationService.Navigate will create a new instance of the page (thus displaying a new empty textbox). Navigation.GoBack will restore the previous page.