简体   繁体   中英

Xamarin Forms Navigation.PopAsync() for Master Detail Page

I am currently developing a Xamarin Forms application which is using Master Detail Pages. 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(). I tried the Remove method but this didn't work either. I am wondering if anyone could help me please?

Have you tried this: 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. Check this project: https://github.com/officialdoniald/Xamarin.Forms.CustomControls

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM