Link to home
Start Free TrialLog in
Avatar of tangteng78
tangteng78Flag for Malaysia

asked on

How do I PopModalAsync a few pages back?

Hi,
I have navigated to few pages (in the stack) by using PushModalAsync . How do I go back to the 1st page (by just a click from the last page)?

Example:
Page 1 -> Page 2 -> Page 3 -> Page 4 -> Page 1 ?

How do I go back to Page 1?

I'd tried on the below, but it only gets me back to Page 3

Any help is greatly appreciated.


        private async void Goback(object sender, EventArgs e)
        {
            await Navigation.PopModalAsync();
            await Navigation.PopModalAsync();
            await Navigation.PopModalAsync();
        }


Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jonathan D.
Jonathan D.
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial