I’ve been trying to figure out how to do this for a couple of days now.
It’s a fairly common problem so I’ll explain the situation as generically as possible so maybe others can get a bit of use out of it.
I have a list view on my WPF (using MVVM) dialog, it’s bound to an observable collection of items with, say, five properties which are displayed in seperate columns.
I call a function which iterates over all the items and changes one of their properties. This function takes a while to get through all the items so I want it to update each item as it goes.
What are the options to do this so the UI remains responsive, and which is the simplest to implement?
If you are using
C# 4.0, useand when set
ModelViewobject from other thread, use