Customizing Network Diagram dependency line behavior in Gantt Chart Light Library

Sometimes you want to display dependency lines as Bezier segments instead of straight lines and/or allow the end users to create item dependencies using drag and drop operations and delete them using context menu items when you use NetworkDiagramView component of Gantt Chart Light Library.

To help you get started, we have prepared a Network Diagram dependency templating example available with full C# source code that you can review. Feel free to copy and adapt the code as needed in your application.

This sample shows how you can customize DependencyLineTemplate to define how dependency lines should appear on screen, how to add a context menu on dependency lines, and how to enable drag and drop creation of item dependencies using a Thumb object by properly handling its Drag events, displaying a temporary dependency line while a drag operation is in progress.