When my page is displayed the first time it works. For the second display, in my viewmodel, I've updated the CurrentPlotModel , and I have the bug.
CurrentPlotModel = new PlotModel {....}
The solution:
Before updating the CurrentPlotModel with the new value, I set it to null AND I call the garbage collector to clear correctly the plotview association.
CurrentPlotModel = null;<br> GC.Collect();<br>CurrentPlotModel = new PlotModel {....}
This is my only workaround. I've tested many many other cases, with no success.
In my case the PlotView is used in a DataTemplate (In a Windows Style Metro App)
When my page is displayed the first time it works.
For the second display, in my viewmodel, I've updated the CurrentPlotModel , and I have the bug.
The solution:
Before updating the CurrentPlotModel with the new value, I set it to null AND I call the garbage collector to clear correctly the plotview association.
This is my only workaround. I've tested many many other cases, with no success.