I have figured out in which case this is happening, If I add kanbanmodels as below one by one with for loop, it throw this exception irregularly.
public ObservableCollection KanbanModels { get; set; }
for (int i = 1; i <= SomeCount; i++)
KanbanModels.Add(new KanbanModel());
but If I create another list and add models into the list and after that create a new ObservableCollection from that list, it will work fine. somehing like below
var KanbanModelList = new List<KanbanModel>();
for (int i = 1; i <= SomeCount; i++)
programKanbanModelList.Add(new KanbanModel());
KanbanModels = new ObservableCollection<KanbanModel>(KanbanModelList );
It looks like that adding item fires some Changed event as the stacktrace indicates and it is crashing for some reason.