Xamarin.Plugin.SharedTransitions
Xamarin.Plugin.SharedTransitions copied to clipboard
Basic transition + Transitions from collections failed
I have a ContentPage with a TabView from Xamarin Community Toolkit
In one TabViewItem, I have a CollectionView with transitions, working OK
My ContentPage:
<ContentPage ... xmlns:sharedTransitions="clr-namespace:Plugin.SharedTransitions;assembly=Plugin.SharedTransitions" sharedTransitions:SharedTransitionNavigationPage.TransitionSelectedGroup="{Binding DiscountId}>
In the TabViewItem, inside the Template:
<ImageLoading:CachedImage sharedTransitions:Transition.Name="DiscountImage" sharedTransitions:Transition.Group="{Binding Id}">
Is working OK
https://user-images.githubusercontent.com/8869059/136480870-a9e9d09c-6591-45fa-91d4-3ee06be16cfb.mov
But I have in another TabViewItem with a simple Image
<Image sharedTransitions:Transition.Name="FrancoImage" HeightRequest="150" Source="franco3.png"/>
<ImageLoading:CachedImage Aspect="Fill" DownsampleToViewSize="true" ErrorPlaceholder="notfound" HeightRequest="300" LoadingPlaceholder="loading" sharedTransitions:Transition.Name="DiscountImage" Source="{Binding ImageUrl}" />
https://user-images.githubusercontent.com/8869059/136480926-da34a67e-d0ce-4a8d-bbdb-b442ca306c5a.mov
Transitions FAILED
If I remove "sharedTransitions:SharedTransitionNavigationPage.TransitionSelectedGroup="{Binding DiscountId}" in my ContentPage
The first one is OK and the second is FAILED
https://user-images.githubusercontent.com/8869059/136481098-a52aaabd-e4d0-436a-91a1-db00c4bd2741.mov
https://user-images.githubusercontent.com/8869059/136481120-ff8b7a48-438e-4cae-9594-9e7ffb3decea.mov
Bug Information
Version Number of Plugin: 2.0.4 Version of VS: Version of Xamarin: 5.0.0.2125 Versions of other things you are using:
Steps to reproduce the Behavior
- Create a Xamarin.forms project
- Install Xamarin Community Toolkit last version
- On the main page, add TabView with 2 TabViewItem and set up the page to use collectioview
- In the first TabViewItem add collection view transition and the second TabViewItem add one image with transition
Expected Behavior
Transitions from collection view item OK Transitions from image OK
Actual Behavior
Transitions from collection view item OK Transitions from image FAILED
If we remove "sharedTransitions:SharedTransitionNavigationPage.TransitionSelectedGroup="{Binding DiscountId}" in my ContentPage
Transitions from collection view item FAILED Transitions from image OK