WPF Toolkit Chart not clearing all points when context is changed.


I am writing a desktop application using WPF and the MVVM pattern with C#. I have a list of charts I need to have the user look through. I basically created a list of chart ViewModel objects, and an integer index that refers to the one being viewed. There are two commands, increment and decrement, which change the index, and I put the following code overriding the OnPropertyCanged event.
        protected override void OnPropertyChanged(string propertyName)
            switch (propertyName)
                case "LoadPointIndex":
                    if (this.ResultsList.Any())
                        this.SelectedChart = this.Charts[this.LoadPointIndex];
Then I simply have the following code in my view
<view:Chart DataContext="{Binding SelectedeChart}" />
Each chart had an ObservableCollection of KeyValuePairs to bind to and it almost works fine. The problem is, sometimes when I increment or decrement from one view to the other a point "sticks". It is obviously left over from the other chart, I have checked the chart objects and they do not have this extra point on them, and usually if I try going to a different chart and coming back, the point disappears (but not always).

I tried putting all of the ChartViewModels in an ObservableCollection, and binding a TabControl's ItemSource to the list, creating a tab for each chart... But I see exactly the same behavior! It is intermittent, but frequent.


Kleineg wrote Apr 14, 2016 at 1:45 PM

What is the status of this? Is anyone working on it?