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

Navigating from modal page

$
0
0

Hello!

I had to display a popup on ListView item selection event. This popup was supposed to have 2 buttons, one of them is for navigating further to another page. Since I found no popup control I decided to use a modal page as an alternative. So now when I try to move from this modal "popup" page to another I get an exception because this page is not a NavigationPage anymore.
NagivationPage -> PushModalAsync PopupPage -> PushAsync --> exception
To keep it as a navigation page I have to avoid PushModalAsync and rather use PushAsync which is not an option for me.

Is there a way to keep the page modal and keep the navigation feature? I thought about having some navigation method in the previous "parent" page and then using PopModalAsync to navigate back from modal "popup" page to the previous one also calling the navigation method of it?

Thanks!


Viewing all articles
Browse latest Browse all 58056

Trending Articles