tangteng78
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.
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();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.