[英]Xamarin Forms Navigation.PopAsync() for Master Detail Page
I am currently developing a Xamarin Forms application which is using Master Detail Pages. 我目前正在开发使用Master Detail Pages的Xamarin Forms应用程序。 I am able to push the master detail forms onto the Navigation Stack using Navigation.PushAsync(MasterDetailForm) but am not able to pop the master detail forms from the stack using Navigation.PopAsync().
我可以使用Navigation.PushAsync(MasterDetailForm)将主要详细信息表单推送到导航堆栈上,但不能使用Navigation.PopAsync()从堆栈中弹出主要详细信息表单。 I tried the Remove method but this didn't work either.
我尝试了Remove方法,但这也不起作用。 I am wondering if anyone could help me please?
我想知道是否有人可以帮助我?
Have you tried this: Navigation.PushAsync(new NavigationPage(MasterDetailForm))
? 您是否尝试过:
Navigation.PushAsync(new NavigationPage(MasterDetailForm))
? I think you dont have a root page. 我认为您没有根页。 Or your Detail Page doesn't set as
Navigation.PushAsync(new NavigationPage(DetailPage))
or just simple Detail = DetailPage. 或者您的详细信息页面未设置为
Navigation.PushAsync(new NavigationPage(DetailPage))
或仅简单的Detail = DetailPage。 Check this project: https://github.com/officialdoniald/Xamarin.Forms.CustomControls 检查此项目: https : //github.com/officialdoniald/Xamarin.Forms.CustomControls
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.