in my WPF application I have a ListView
with a GridView
as it's View
. The ItemsSource
of the ListView
is bound to an ItemsCollection in the ViewModel.
This GridView
has a lot of columns and the ListView
can have a lot of items.
When the windows is loading or the user updates this ListView
I show a loading animation while retrieving the new data from the server and updating the ItemsCollection in the ViewModel with the new data.
This retrieving of data is already done asynchronously, so the loading animation keeps spinning. But as soon as the data is retrieved and the binding is to update the ListView
, the loading animation freezes until the update of the UI is finished.
How can I make my loading animation keep spinning even when the binding updates the UI?
Thank you for your help.