I’ve added a link to my View connecting two ports and I wan’t the link to be a bezier link and editable.
I configure the link by the following code my view class.
protected override void OnLinkCreated(GoSelectionEventArgs evt)
GoLink link = evt.GoObject as GoLink;
if (link != null)
link.ToArrowStyle = GoStrokeArrowheadStyle.Polygon;
link.ToArrowLength = 10;
link.ToArrowWidth = 10;
link.ToArrowShaftLength = 8;
link.ToArrow = true;
link.Style = GoStrokeStyle.Bezier;
link.Selectable = true;
link.Reshapable = true;
link.Deletable = true;
link.AutoRescales = false;
This makes the link a bezier link. Wha is missing are the “handle points” that allow the user to stretch the link. How can i add these handlepoints or is there any way of adding the automatically. Maybe someone can post some lines of code that demonstrate how to configure a bezier link correctly.