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

1
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.