I have an application written in wpf, which downloads some webpages, parses html code and saves some values.
class ListOfItems
{
public List
I think the standard way is to derive the data object from Freezable
and Freeze
it before passing it to another thread. Once the object is frozen, you can't change it any more, so there's no danger of threading bugs.
Another option might be to make the data object a plain C# object (not derived from DispatcherObject
) and implement INotifyPropertyChanged
yourself.