iOS PlotView Sealed?

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

benhysell wrote at 2014-03-13 01:43:

I'm trying to punt around iOS - Can't Add PlotView via AddSubview, and one way I can accomplish that is to derive my own class from PlotView, thus allowing me to easily add the PlotView to another UIController, or not use a UIController at all.

Why did you decide to seal PlotView?

I can easily unseal it, derive from it, and everything works as expected. The only oddity is I need to create a second PlotModel in my derived class, fully build the model, and then assign this.Model = model, else I get a null reference exception while trying to render the plot.

objo wrote at 2014-03-13 07:00:

I don´t remember any reason to seal the class, maybe this happened by mistake :) I have removed the seal now! Thanks.

benhysell wrote at 2014-03-13 14:11:

What are your thoughts on the PlotModel issue?

i.e. I need to have a second local variable to hold the PlotModel, build it up, then assign it to this.PlotModel = localPlotModel; else rendering fails down in the core OxyPlot project?