在我的应用程序结构中,如下所示,
列表页面 -> 详情页面 -> 编辑页面
在编辑页面中有按钮“删除”从数据库中删除数据。
现在我的问题是将用户从编辑页面导航到列表页面,
我为此使用了 Navigation.popasync 2 次,但在详细信息页面上,我收到来自服务的错误,不存在此类记录。
如何正确地将用户从编辑页面导航到列表页面?
最佳答案
// Remove page before Edit Page
this.Navigation.RemovePage (this.Navigation.NavigationStack [this.Navigation.NavigationStack.Count - 2]);
// This PopAsync will now go to List Page
this.Navigation.PopAsync ();
关于navigation - 从导航堆栈中删除页面 - xamarin.forms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34084692/