I tested the ability to add to a collection by enabling the Dbg button and adding code to perform an add to DbgButton_Click (Commenting out the break). It adds an item to _items and then does an add to the collection (MyDataVirtualizedAsyncFilterSortObservableCollection.Add(newItem).
However, it caused a not implemented exception in GetItemsAt in RemoveOrDbDataSourceAsyncProxy.cs.
Steppoing through the code I found that FillPageFromAsyncProvider in PaginationManager.cs was calling GetItemsAt which, according to comments, is for sync only. If it is async, I believe it should call GetItemsAtAsync.
I commented out the GetItemsAt and added GetItemsAtAsync and the add now works.
// var data = this.ProviderAsync.GetItemsAt(pageOffset, newPage.ItemsPerPage, false);
var data = this.ProviderAsync.GetItemsAtAsync(pageOffset, newPage.ItemsPerPage, false).Result;
I tested the ability to add to a collection by enabling the Dbg button and adding code to perform an add to DbgButton_Click (Commenting out the break). It adds an item to _items and then does an add to the collection (MyDataVirtualizedAsyncFilterSortObservableCollection.Add(newItem).
However, it caused a not implemented exception in GetItemsAt in RemoveOrDbDataSourceAsyncProxy.cs.
Steppoing through the code I found that FillPageFromAsyncProvider in PaginationManager.cs was calling GetItemsAt which, according to comments, is for sync only. If it is async, I believe it should call GetItemsAtAsync.
I commented out the GetItemsAt and added GetItemsAtAsync and the add now works.
// var data = this.ProviderAsync.GetItemsAt(pageOffset, newPage.ItemsPerPage, false); var data = this.ProviderAsync.GetItemsAtAsync(pageOffset, newPage.ItemsPerPage, false).Result;