Multiple views of a single plot model

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

xsquare wrote at 2013-09-11 15:53:


The program I am working on supports the possibility to view the same set of data in multiple windows simultaneously. The data is updated in all the windows at the same time. Some data is displayed as an OxyPlot plot which is bound to a model of the plot.

The problem is that OxyPlot allows only one view of the plot per model and when trying to display multiple views I get this exception
How can I solve this problem without making copies of the plot model?

Thank you in advance for your answers.

objo wrote at 2013-09-11 20:02:

Sorry, this is the design of the PlotModel (it is a ViewModel) - you need to create one instance for each view.
But you should not need to duplicate data, you can share the same data source for the series!