I think what I’m looking for is some sort of DragCompleted type event.
I’ve already overridden the VerticalLineAnnotation in order to force the bar to only jump to existing coordinates. So what I want to do now is go off and get more data related to that coordinate value when the user has finished dragging the bar.
I haven’t got a lot of time to implement anything complex so for now I can get away with a button on a tool bar to press after the drag. Not very slick I know, but if there’s an easy way to do it then I’m keen to hear about it 🙂
Thanks
- Stuart McCullough asked 9 years ago
- You must login to post comments
Update: In SciChart v3.3.2 we have introduced three new events which help you identify when an annotation (any Annotation) has been dragged. These are:
public class AnnotationBase
{
...
/// <summary>
/// Occurs when a Drag or move operation starts
/// </summary>
event EventHandler<EventArgs> DragStarted;
/// <summary>
/// Occurs when a Drag or move operation ends
/// </summary>
event EventHandler<EventArgs> DragEnded;
/// <summary>
/// Occurs when current <see cref="AnnotationBase"/> is dragged or moved
/// </summary>
event EventHandler<AnnotationDragDeltaEventArgs> DragDelta;
}
You can get v3.3.2 from our nightly build page. This is a stable, backward compatible upgrade to v3.2 and v3.3.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
Please login first to submit.