Hello,
I created a custom series to enable ItemToolTipLayer and CrosshairLayer on my series. But now i would like to display in the OverviewPlusDetailPane, my series.
How can do that ? Could you provide me a simple example?
I know that i need to override this method:
http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=InfragisticsWPF4.Controls.Charts.XamDataChart.v14.1~Infragistics.Controls.Charts.Series~RenderThumbnail.html
But it doesn't works:
protected override void RenderThumbnail(Rect viewportRect, RenderSurface surface) {
base.RenderThumbnail(viewportRect, surface);
... //render my serie.
surface.Surface.Children.Add(contourShape);
}
Thank you for your help!
Hello Olivier,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used the same code I used to render my custom Series in order to draw them in the OPD pane. The difference is that I add the elements(in my case paths) to the surface’s Children[0] instead of the RootCanvas and Rect used in the ScalerParams constructor are different. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thank you for your answer,
Actually my custom Series inherit from Series.
If i change my inheritance, like your example(from scatterbase), i loose ItemToolTipLayer functionnality, but the OPD pane works fine because the surface.Surface.children contains a Canvas.
Why is surface.Surface.children empty in my case ?
Thank you for your help,
Olivier.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well. Also I can say that in the sample I sent you I add the Paths to the Children collection of the (surface.Surface.Children[0] as Canvas), not directly to the Surface, because when adding things to the thumbnail surface, you either have to use the provided thumbnail canvas, or add the new container to the Contained dictionary on the surface, the chart will aggressively remove anything else from the thumbnail, believing it to be old renderings.