GridSnap for Links


is it possible to enable GridSnapping not only for nodes, but also for links?

I’m working with the WPF version on a project similar to the “Dynamic Ports” sample. I save the link-route and it would be nice if the position of the endpoints of the link segments would be automatically aligned to the grid when they are moved manually.

Yes, you can override LinkReshapingTool.ComputeReshape to return the desired Point. Remember to respect any constraints given by ReshapingBaseTool.GetReshapeBehavior.