Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect animation behaviour. #101

Open
Petrarca181 opened this issue Jul 24, 2023 · 0 comments
Open

Incorrect animation behaviour. #101

Petrarca181 opened this issue Jul 24, 2023 · 0 comments

Comments

@Petrarca181
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant