This project is read-only.

Preventing users from dragging / moving vertices

Apr 16, 2010 at 10:57 AM

I'd like to lock the vertices / nodes of my graph in place, so that the user is not able to move them around by dragging.  What is the easiest way of doing this?

Apr 16, 2010 at 11:34 AM

From a hunt through the source code I've discovered that the way to do this is to set the WPFExtensions IsDragEnabled property to false on the VertexControl using styles:

<Style TargetType="{x:Type gc:VertexControl}">
  <Setter Property="WPFExtensions_AttachedBehaviours:DragBehaviour.IsDragEnabled" Value="False"/>

Aug 25, 2011 at 9:42 AM

Setting this to False doesn't do the trick for me. Although I can see, that the DragBehaviour isn't used anymore (no more infos in output window) I still can drag the vertices around.
Anyone got an idea, where to look from here?