Pre loader

Screenshots with cursormodifier using contextmenu

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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

Version
8.3
Images
  • Lex
    • Lex
    • 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 to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.