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!
- Greg Knox asked 5 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
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");
}
- Greg Knox answered 5 years ago
- You must login to post comments
Please login first to submit.