Sorry - my question is almost identical to this one but since it didn\'t receive a viable answer, I am hoping that someone else has some fresh ideas.
I have a WPF Tr
My initial guess is that you have something like the following for the root node:
public ObservableCollection Entities
{
get;
set;
}
Then, instead of doing something [good] like the following:
Entities.Clear();
foreach (var item in someSetOfItems)
Entities.Add(item);
You are doing something [bad] like this:
Entities = new ObservableCollection(someSetOfItems);
You should be able to track down the issue by making the backing field of the Entities property readonly:
private readonly ObservableCollection _entities
= new ObservableCollection();
public ObservableCollection Entities
{
get
{
return _entities;
}
}