Rob Sanders
Rob Sanders

Reputation: 5347

Xamarin Forms Navigation Stack empty

I am getting an index out of range exception when Popping a page from the navigation stack in my Xamarin Forms App on both iOS and Android.

I push the page onto the stack fine, then I can pop it the first time fine, then I push it on again fine but the second pop results in the exception.

Xamarin forms 3.0.0 iOS 11 Android 8.1.

Anyone experience this same issue?

As requested the stack when this occurs is NavigationPage -> ContentPage -> ContentPage -> TabPage -> ContentPage -> ContentPage.

The last content page is where the second call to PopAsync results in the exception.

Upvotes: 2

Views: 1944

Answers (1)

Hichame Yessou
Hichame Yessou

Reputation: 2708

I would double check that you're pushing and popping from the same NavigationPage

Upvotes: 2

Related Questions