Hi,
am implementing a context menu that has the option to export screen shots of the chart as jpeg.
As soon as i click on the context menu, I loose the cursor modifier.
Possible to export/print the chart with the cursors with the contextmenu??
Thanks
- P S asked 6 months ago
-
Hi, Thanks for your inquiry. I’ll discuss it with our team and will get back to you as soon as we have an update. Kind regards, Lex, SciChart Technical Support Engineer
- You must login to post comments
Hi,
We discussed your inquiry and would like to suggest you the following solution on how to make the CursorModifier stay on the SciChartSurface when ContextMenu opens.
The Cursor disappears when the Window focus is switched to the ContextMenu. This behavior can be overridden for the CursorModifier class.
The idea is to notify the CursorModifier that you are going to open the ContextMenu and the Cursor overlays should not be removed from the SciChartSurface.
This can be done by the following steps:
1) Create a class derived from the CursorModifier;
2) Override the ClearAll() method:
SciChart WPF Documentation – ClearAll Method (CursorModifier) | WPF Chart Documentation
3) The ClearAll() method will be called when the ContextMenu opens. So in this case, the base implementation of the ClearAll() method should not be called in the mentioned derived class.
Hope this helps.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 6 months ago
- You must login to post comments
Please login first to submit.