SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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

WPF Chart 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.