How to remove particular page from modal stack?

前端 未结 4 2004
慢半拍i
慢半拍i 2021-01-29 07:42

I have four pages page 1-page 2-page 3-page 4.I use push modal async for navigating forward. When I tap button click in page 4 it is navigating to the page2. But tapping back bu

4条回答
  •  清酒与你
    2021-01-29 08:26

    If you want to go 2 pages back this will work

            Navigation.RemovePage(Navigation.NavigationStack[Navigation.NavigationStack.Count - 2]);
            Navigation.RemovePage(this);
    

    First we remove the page before the current page and then the current page.

提交回复
热议问题