Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF graph: cannot disable annotation movement

Solved!
Go to solution

When I set InteractionMode = AnnotationInteractionModes.None, I still can move annotation by dragging the circle (this is point annotation). How do I disable this movement altogether.

0 Kudos
Message 1 of 3
(5,984 Views)
Solution
Accepted by topic author eugenem

This appears to be an issue with how the annotations implement the “drag target” interaction mode. I have created a task to fix this.

 

As a workaround, you can add and remove the annotation from the graph:

 

    annotation.InteractionMode = AnnotationInteractionModes.None;
    graph.Children.Remove( annotation );
    graph.Children.Add( annotation );

 

This will force the annotation to re-initialize the drag handling to match the current InteractionMode value.

~ Paul H
0 Kudos
Message 2 of 3
(5,974 Views)

Just wanted to let you know this issue (#391307) was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 3 of 3
(4,467 Views)