This applies to UWP, how can I disable animation of list view items? I have a method that runs every few seconds, and the fly-in animation effect makes it visually displeasing. I want to disable the effect. Not much code to share, but here's my ListView:
<ListView RelativePanel.Below="pageHeader" ItemsSource="{Binding DataItems}" />
The ListView class doesn't support defining list items in XAML, you must use the ItemsSource property or data binding with an ItemTemplate to define items in the list. A ListView is best suited for a collections consisting of a single data type.
XAML - ListBox. A ListBox is a control that provides a list of items to the user item selection. The user can select one or more items from a predefined list of items at a time.
ListView is an ItemsControl, so it can contain a collection of items of any type. To populate the view, add items to the Items collection, or set the ItemsSource property to a data source.
To display a collection in rows and columns, use a GridView. ListView is an ItemsControl, so it can contain a collection of items of any type. To populate the view, add items to the Items collection, or set the ItemsSource property to a data source.
You have to disable the transitions:
<ListView Transitions="{x:Null}"
ItemContainerTransitions="{x:Null}">
</ListView>
If you want to set the scroll position, try this:
this.ListView.ScrollIntoView(ListView.SelectedItem);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With