anagram4wander / VirtualizingObservableCollection

.NET PCL With Virtualizing Observable Collection
http://alphachitech.wordpress.com/2015/01/31/virtualizing-observable-collection/
56 stars 28 forks source link

How is "VirtualizingObservableCollection.ReplaceAt" called? #20

Open joshnoe opened 7 years ago

joshnoe commented 7 years ago

I'm trying to have RaiseCollectionChangedEvent be called when my items are loaded into my datagrid. In the sample project, this happens, stemming from VizualizationManager.RunOnUI, which then calls VirtualizingObservableCollection.ReplaceAt.

However, in my project, VirtualizingObservableCollection.ReplaceAt isn't called when the data is bound. I've tried stepping through to see why, but there's so much indirection and the call stack is always lost due to Tasks etc, I've had no luck.

What causes VirtualizingObservableCollection.ReplaceAt to be called in the sample project?