In Xamarin.Forms, when we use Navigation.PopAsync()
, the page does not pop in iOS.
After PopAsync()
the same page remains.
If you pushed the page onto the Navigation Stack using Navigation.PushAsync()
, use Navigation.PopAsync()
to pop the page off of the Navigation Stack.
If you pushed the page on to the Navigation Stack using Navigation.PushModalAsync()
, use Navigation.PopModalAsync()
to pop the page off of the Navigation Stack.
All UI updates must be done on the main thread. To ensure that this request is happening on the main thread, use BeginInvokeOnMainThread
:
Device.BeginInvokeOnMainThread(async () => await Navigation.PopAsync());
or
Device.BeginInvokeOnMainThread(async () => await Navigation.PopModalAsync());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With