Multiple views of a single plot model

Sep 11, 2013 at 1:53 PM
Greetings!

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
Image
How can I solve this problem without making copies of the plot model?


Thank you in advance for your answers.
Coordinator
Sep 11, 2013 at 6:02 PM
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!