Is it possible to drag a surfacegridseries from one LC window
To another LC window? How?
Thanks
Drag n Drop from window to window
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Drag n Drop from window to window
It's not unfortunately a built-in feature. By using chart.DragDrop, chart.DragEnter and chart.MouseDown event handlers you can do the drag-drop logic. In MouseDown, you can call chart.View3D.SurfaceGridSeries3D[0].IsMouseOver method to check if mouse is over the series, or use SurfaceGridSeries.MouseDown event handler. In DragDrop event handler of target chart, create a new surface series which has similar data and appearance than the series being dragged. Don't try to use the same series object because it has references to GPU resources that are specific to chart instance.
LightningChart Support Team, PT
Re: Drag n Drop from window to window
Thanks for the quick reply.