Pop 2 modals at once

ReinVReinV BEMember ✭✭

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 ?

Tagged:

Best Answer

Answers

  • ReinVReinV BEMember ✭✭

    Works like a charm !

    Somehow i was convinced that I had to pass true to the 2nd call but false to the first one fixed it thank you !

Sign In or Register to comment.