JaredPar’s approach is a valid one. Another approach which is worth considering is using a thread safe ObservableCollection
instead of the built-in ObservableCollection
. There’s a few implementations out there, but Sasha Barber’s implementation and the CLinq Continuous Collection class are some of the better ones in my opinion. Internally, these classes essentially use the approach outlined by JaredPar, but encapsulate it inside the collection class.