Pre loader

VerticalLineAnnotation Drag - Is there an easy way to identify when a line has been released from a drag operation?

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


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 🙂


  • You must 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,

  • You must to post comments
Showing 1 result
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