I want a group box to be placed on SciChart to the extreme left corner where in if i copy and paste the SciChart to word document group box must be visible with SicChart
- Anitha Chanumolu asked 9 years ago
- You must login to post comments
Please find attached pdf’s.
With groupbox pdf is my requirement and other one(without groupbox) is what iam getting currently when iam copying chart to word document. I just used groupbox and placed on scichart may be that is where iam going wrong. How to overcome this problem
- Anitha Chanumolu answered 9 years ago
- You must login to post comments
Hi Anitha,
If you are calling SciChartSurface.ExportToBitma(), it will only export the elements that are actually within the SciChartSurface’s visual children.
So the GroupBox – depending on how it is placed on the SciChartSurface may not be a visual child, therefore will not be exported when you call ExportToBitmap().
To include an element in the visual children of the SciChartSurface, you have three choices:
- You can re-template the SciChartSurface control template. This is complex and over the top for what you want
- You can place elements inside the SciChartSurface.RootGrid, which is simply a grid, at the root of the SciChartSurface
- You can place elements on the SciChartSurface.ModifierCanvas, which is a canvas over the top of the SciChartSurface
- You can place elements inside a CustomAnnotation inside the SciChartSurface.
Once you do that, calling SciChartSurface.ExportToBitmap() should include the elements in the screenshot.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
Please login first to submit.