How do I clear the Navigation stack?

后端 未结 5 1237
无人共我
无人共我 2021-02-18 18:03

I have problem for Navigation in my app. I use xamarin.forms how can clean my navigation stack. No use Pop and push. Can I see my full navigation stack ?

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 18:25

    For anyone viewing this in in 2020:

    await Navigation.PopToRootAsync();
    

    or if your using Shell navigation

    await Shell.Current.Navigation.PopToRootAsync();
    

提交回复
热议问题