In Xamarin Forms you can have a Master Detail page and in the detail section - you can display a tab page for Detail that allows navigation of said tabs. Currently the view presenter doesn't support this behavior due to the ShowTabbedPage in the presenter replacing the MasterDetail page when creates the TabbedPage.
When drawing a Tabbed Page and Master Detail is displayed the tabbed page shows up in the Detail Page of the Master Detail.
Create a new Xamarin Forms project. Make Master Detail the root or first page. Create a standard page and set it to master. Then create a Tabbed Page. I would be assumed the second ViewModel called would be the detail page. It instead it overwrites the MasterDetailPage with the Tabbed Page.
VS for Mac - Xamarin Forms 3.x
Version: 6.2.2
Platform:
The problem is the TabbedPage over writes the the MasterDetail Page. The solution I want to put in would add a property to the MvxTabbedPagePresentationAttribute to allow routing to a Master or Detail section of MasterDetail. Then I can check for that attribute in the ShowTabbedPage of the MvxFormsPagePresenter and if it exists I can call ReplacePageRoot instead of PushOrReplacePage sending it the MasterDetail information by creating a new MvxMasterDetailPagePresentationAttribute before sending it to ReplacePageRoot. I have this working in a custom app I wrote without issues. I'm just doing some final testing. I just wanted to see if anyone objects to my solution to the issue before coding in this solution and creating a PR.
Can you please give us a sample so we can do this ourselves?
I would like that sample too. :)
Most helpful comment
Can you please give us a sample so we can do this ourselves?