Setting PredecessorItem properties when creating dependency lines using drag and drop operations in Gantt Chart Light Library

I need to set DependencyType and/or Tag properties of the new PredecessorItem object created when the end user performs a drag and drop operation to define a new dependency between two tasks (drawing a dependency line between two task bars) in the GanttChartDataGrid or GanttChartView control of Gantt Chart Light Library.

You need to handle the CreatingDependencyLine of the GanttChartDataGrid or GanttChartView control in order to be able to set up such properties. For example, in the event handler method you may display a modal dialog window to ask the end user for further information to be set (such as the DependencyType) and set them as properties of the PredecessorItem object obtained from the event arguments. The new predecessor object will be added to its destination item immediately after the event handler method is executed.