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

Pop 2 modals at once

$
0
0

Hello everyone,

In my setup I use a MasterDetailPa ge with a Navigation page as the Detail Page.

At some point in our App we have 2 modals pushed on top of eachother.

We would like to remove both modals at once.

How we currently do it is:

await Navigation.PopModalAsync();
await Navigation.PopModalAsync();

But visually the first modal get's popped, and then the second one.
Using PopToRootAsync() results in an exception.

Is there a way to pop both modals at the same time ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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