How to remove particular page from modal stack?

前端 未结 4 2057
慢半拍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:20

    RemovePage only supports removing of specified page from NavigationStack.

    Like this: Navigation.RemovePage(Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]);

    You can refer this for more detail: https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.inavigation?view=xamarin-forms

提交回复
热议问题