Skip to content

Basic transition + Transitions from collections failed #68

@azapatac

Description

@azapatac

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

Screen.Recording.2021-10-07.at.7.44.25.PM.mov

But I have in another TabViewItem with a simple Image

<ImageLoading:CachedImage
Aspect="Fill"
DownsampleToViewSize="true"
ErrorPlaceholder="notfound"
HeightRequest="300"
LoadingPlaceholder="loading"
sharedTransitions:Transition.Name="DiscountImage"
Source="{Binding ImageUrl}"
/>

Screen.Recording.2021-10-07.at.7.45.10.PM.mov

Transitions FAILED

If I remove "sharedTransitions:SharedTransitionNavigationPage.TransitionSelectedGroup="{Binding DiscountId}" in my ContentPage

The first one is OK and the second is FAILED

Screen.Recording.2021-10-07.at.7.47.01.PM.mov
Screen.Recording.2021-10-07.at.7.47.29.PM.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

  1. Create a Xamarin.forms project
  2. Install Xamarin Community Toolkit last version
  3. On the main page, add TabView with 2 TabViewItem and set up the page to use collectioview
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions