Hi Elia,
Thanks for your interest in Syncfusion product.
If you want to change the color of the LineConnector while activating the LineTool, then you have customize LineTool and LineBase class. In the Mouse up event of LineTool class you can change the color of the link. Please refer to the following code snippet in CustomLineConnector class
public override Tool ProcessMouseUp( MouseEventArgs evtArgs )
{
CompleteAction( ptStart, ptEnd );
}
private void CompleteAction( PointF ptStart, PointF ptEnd )
{
Node node = CreateNode( ptStart, ptEnd );
node.LineStyle.LineColor = Color.Red;
}
//To activate the LineTool in MainForm.cs
MyLineTool linetool = new MyLineTool(this.diagram1.Controller);
this.diagram1.Controller.RegisterTool(linetool);
this.diagram1.Controller.ActivateTool(linetool);
I have attached the sample that demonstrates this completely. You can download the sample from the following page.
http://websamples.syncfusion.com/samples/Diagram.Windows/F66947/main.htm Please refer to it and let me know if you have any questions.
Regards,
Nagaraj