Error of WPF Teechart - RenderDataDrawingContext
Posted: Tue Aug 21, 2012 3:00 pm
Hi,
i'm calling the function TeeChart.Export.Image.SVG.Save.
the function causes the chart to redraw and call after draw.
in the afterdraw i'm using the canvas to draw lines and text. on the drawing line i got an exception:
Cannot access a disposed object.
Object name: 'RenderDataDrawingContext'.
Stack Trace:
at System.Windows.Media.RenderDataDrawingContext.VerifyApiNonstructuralChange()
at System.Windows.Media.DrawingContext.DrawText(FormattedText formattedText, Point origin)
at Steema.TeeChart.WPF.Drawing.Graphics3DWPF.DoDrawString(Double x, Double y, String text, ChartBrush aBrush)
at Steema.TeeChart.WPF.Drawing.Graphics3D.TextOut(ChartFont f, Double x, Double y, String text)
at Steema.TeeChart.WPF.Drawing.Graphics3D.TextOut(Double x, Double y, String text)
what i did wrong?
thanks
i'm calling the function TeeChart.Export.Image.SVG.Save.
the function causes the chart to redraw and call after draw.
in the afterdraw i'm using the canvas to draw lines and text. on the drawing line i got an exception:
Cannot access a disposed object.
Object name: 'RenderDataDrawingContext'.
Stack Trace:
at System.Windows.Media.RenderDataDrawingContext.VerifyApiNonstructuralChange()
at System.Windows.Media.DrawingContext.DrawText(FormattedText formattedText, Point origin)
at Steema.TeeChart.WPF.Drawing.Graphics3DWPF.DoDrawString(Double x, Double y, String text, ChartBrush aBrush)
at Steema.TeeChart.WPF.Drawing.Graphics3D.TextOut(ChartFont f, Double x, Double y, String text)
at Steema.TeeChart.WPF.Drawing.Graphics3D.TextOut(Double x, Double y, String text)
what i did wrong?
thanks