There is a completely standard ListView:

<ListView x:Name="lst"> <ListView.ItemTemplate> <DataTemplate x:DataType="logic:UIItem"> <TextBlock Text="{x:Bind Name}" /> </DataTemplate> </ListView.ItemTemplate> </ListView> 

which is specified in the C # code as ObservableCollection as ItemsSource. If you change the collection, the animation is too long (beautiful, but such a low speed is not enough). Faster is a complete change of the collection than adding 1 item to it.

I mean standard animation wired into the control.

A similar situation, if you change the collection of items through, for example, lst.Items.Add (dataItem).

I will be glad to ideas how you can speed it up or even turn it off ..

  • one
  • @VladD, yes, it is very similar, it will be necessary to sort it out, thank you! Unsubscribe from the results - Sergey Lyutko

1 answer 1

The result was the following solution (thanks to VladD):

  <Page.Resources> <Style TargetType="ListView"> <Setter Property="ItemContainerTransitions"> <Setter.Value> <TransitionCollection> <!--<AddDeleteThemeTransition />--> <ContentThemeTransition/> <ReorderThemeTransition/> <EntranceThemeTransition /> </TransitionCollection> </Setter.Value> </Setter> </Style> </Page.Resources> 
  • one
    Explain, please, you just turned off the animation with this <AddDeleteThemeTransition /> ? And why do you have this commented out? - Bulson
  • @Bulson Disabled animation by adding style and commenting this line .. - Sergey Lyutko