Pre loader

Double-click on a point to enter in a new X, Y value

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

Answered
0
0

Hello. I’d like to be able to double-click on a point, present a prompt to the user to enter in an X and Y value, and then set that point to the new value.

I can handle the prompt but I’m not too sure the best way to setup a double-click on a point to trigger a command.

Any help would be appreciated. Thanks!

Version
5.2.1.11757
  • You must to post comments
Best Answer
1
0

Hi Greg,

You need to use our Hit-Test API if you want to be notified when a data-point is clicked

https://www.scichart.com/example/wpf-chart-example-hit-test-api/

https://www.scichart.com/documentation/v5.x/RenderableSeries%20Hit-Test%20API.html

Best regards
Andrew

  • You must to post comments
0
0

I’m trying this, but for whatever reason, the method isn’t being called:

 EllipsePointMarker pointMarker = new EllipsePointMarker()
            {
                Fill = plotInfo.SeriesColor,
                Stroke = Colors.White,
                StrokeThickness = 1,
                Width = 8,
                Height = 8
            };

            pointMarker.MouseDoubleClick += PointMarker_MouseDoubleClick;

And then the method:

 private void PointMarker_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    {
        Console.WriteLine("DOUBLE CLICK");
    }
  • You must to post comments
Showing 2 results
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