I have a custom queue-like collection that implements INotifyCollectionChanged and IList<>. Rather than raising CollectionChanged for every Enqueue() operation, it raises CollectionChanged once for every 5 Enqueue() operations: NotifyCollectionChangedEventArgs.NewItems contains a list of the 5 items added since the last CollectionChanged call, and NotifyCollectionChangedEventArgs.NewStartingIndex is set to my collection's Count property - 5.
This collection is being used as a data binding source to a RadCartesianChart with a DateTimeContinuousAxis. Unfortunately, when my collection raises CollectionChanged, an ArgumentOutOfRangeException is thrown out of ChartSeriesDataSource.GenerateDataPoint(). It appears that ChartSeriesDataSource's internal List<> is out of sync with my collection. NotifyCollectionChangedEventArgs.NewStartingIndex lies within my collection, but is several indices (1-4) beyond the end of ChartSeriesDataSource's internal List<>.
Questions:
1. Does ChartSeriesDataSource (and ChartView generally) play nicely when it receives a NotifyCollectionChangedEventArgs.NewItems that contains more than one item? Especially if the source collection already contains data when the data binding is set up?
2. If not, is there another way to throttle ChartView's updates?
This collection is being used as a data binding source to a RadCartesianChart with a DateTimeContinuousAxis. Unfortunately, when my collection raises CollectionChanged, an ArgumentOutOfRangeException is thrown out of ChartSeriesDataSource.GenerateDataPoint(). It appears that ChartSeriesDataSource's internal List<> is out of sync with my collection. NotifyCollectionChangedEventArgs.NewStartingIndex lies within my collection, but is several indices (1-4) beyond the end of ChartSeriesDataSource's internal List<>.
Questions:
1. Does ChartSeriesDataSource (and ChartView generally) play nicely when it receives a NotifyCollectionChangedEventArgs.NewItems that contains more than one item? Especially if the source collection already contains data when the data binding is set up?
2. If not, is there another way to throttle ChartView's updates?