Skip to content

Incorrect animation behaviour. #101

Description

@Petrarca181

Platform (please complete the following information):

  • OS: Android
  • Device: Galaxy tab a8, emulator
  • Sdk vervion: sdk32
  • MAUI, net7 last

My collection


<sho:CollectionView
    Grid.Row="0"
    x:Name="CollectionView"
    CollectionLayout="Vertical"
    ItemHeight="60"
    ItemTemplate="{StaticResource ComponentiSquadraTemplate}"
    ItemsSource="{x:Bind Path=Loader.Result, IsItemsSource=True}"/>

<DataTemplate x:Key="ComponentiSquadraTemplate" x:DataType="models:ComponentiSquadraModel">
    <sho:DraggableViewCell IsDraggable="False">
        <SwipeView HeightRequest="70">
            <SwipeView.RightItems>
                <SwipeItems Mode="Execute">
                    <SwipeItem Command="{Binding Source={RelativeSource AncestorType={x:Type sho:CollectionView}}, Path=BindingContext.SwipeItemInvokedCommand}" CommandParameter="{Binding .}" />
                </SwipeItems>
            </SwipeView.RightItems>
               <Grid HeightRequest="60">
                // some entries hereù
               </Grid>
           </SwipeView>
    </sho:DraggableViewCell>
</DataTemplate>

Appearing animations wokrs fine untill I remove some items from collection. When cell is swiped to the right it will be removed form the collection in the viewModel.
If I remove 3 items and than add 3 new items they will not have appearing animation, from the forth new item animation will be displayed. Basically number of removed items = number of times animation will not be displayed.

Screen_Recording_20230724_130440.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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