Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Changing ObservableCollection in a single transaction

$
0
0

I have an ObservableCollection<> subclass as a ViewModel which is bound to a View. I have a special method that reloads the content of the collection. However in the UI I see the changes gradually or flickering since I clean-up the collection and then add elements one-by-one and for each change a CollectionChanged event is fired. Are there any methods to suppress sending changed events so that the change is working as a single transaction?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>