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

Navigation.PopAsync doesn't work

$
0
0

In my app, when user press Login button on the HomePage, I need to show the LoginPage.

On my home page I call "await Navigation.PushAsync(new LoginPage());" in the command for the Login button. When the login completed, I call "await this.Navigation.PopAsync();" in LoginPage.

It supposed to remove LoginPage and go back to HomePage. But it closes the application instead.

If I remove await from the PopAsync call, the LoginPage stays on screen. But, I found that the HomePage was removed from stack. Pressing back button on the simulator, the app is closed.

Could anyone tell me the right way to push and pop pages.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>