Pre loader

Advice for buildling a measurement cursor

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 folks,

The latest feature I’d like to add to my SciChart-enabled app is a measurement cursor. In measuring mode, the user would drag the mouse along a region of the chart, and the x or y (or both) distances would be displayed, ideally just above the mouse cursor. So far I have created a “zoomless RubberBandXyModifier” which shows me where I’m dragging the cursor (but does not result in a zoom operation), but I’m not sure of the best way to display my results. Is there a built-in feature (built in to either SciChart or WPF in general) which will allow me to display text as part of (or just above) the cursor? Do I need to implement an Adorner? I’d love to know if you have some advice for this.

Thanks,
–George

  • You must to post comments
0
0

Hi George,

I assume you’ve created a Custom ChartModifierBase derived class for this, am I right? If so then you can simply place items on the base.ModifierSurface, which is a Canvas (WPF canvas).

You can place any UI element on there. Just be assured to override the methods OnAttached, OnDetached and clear the canvas on detached or some other user input e.g. right click.

Let me know if you get stuck.

Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies