Closed alexgg94 closed 4 years ago
For this to work, you have to put the tabbedpage's tabs inside a SharedTransitionNavigationPage
, just like in the Tab example in the Sample App.
A TabbedPage is only a container of pages and the navigation occour inside tabs.
In conclusion, you should modify your <main:MainTabbedPage/>
to encapsulate the tabs that need transitions inside a SharedTransitionNavigationPage
, something like this
Yes, that's what I'm doing.
It's exactly the same project but I only modified the MasterDetailPage as I stated above
awww sorry, didn't recognize that the example you posted is from my SampleApp :)
Well, i never tried to put a TabbedPage inside a MasterDetails, in theory this should works:
<MasterDetailPage.Detail>
<main:MainTabbedPage/>
</MasterDetailPage.Detail>
i will try to diagnose whats going on here
Ok i found the culprit: in iOS TabbedPage inside MasterDetail is working. In Android the issue is the FragmentManager and relative ChildFragmentManager. Using TabbedPage inside MasterDetail create another level of ChildFragmentManager and the plugin is unable to read it for now.
I need a new way to find the right FragmentManager for the current page
Hi, I'm using the sample app (TransitionApp) to try out different scenarios. Now I'm trying to work with a Tabbed page within a MasterDetail page. I have modified the MainMasterDetailPage file changing the Detail page:
`<?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:prism="http://prismlibrary.com" xmlns:sharedTransitions="clr-namespace:Plugin.SharedTransitions;assembly=Plugin.SharedTransitions" xmlns:views="clr-namespace:TransitionApp.Views;assembly=TransitionApp" xmlns:image="clr-namespace:TransitionApp.Views.Image;assembly=TransitionApp" xmlns:main="clr-namespace:TransitionApp.Views.Main;assembly=TransitionApp" x:Class="TransitionApp.Views.Main.MainMasterDetailPage">
`
(MainTabbedPage has not been modified) But this is not working even if I put the MainTabbedPage within a SharedTransitionNavigationPage. Am I doing something wrong?
Thanks