protected override ILink CreateNewLink(IPort port) { var link = new OrthogonalLink(); BindNewLinkToPort(port, link); return(link); }
private Control CreateLink(Link link) { var item = new OrthogonalLink(); item.ModelElement = link; item.EndCap = true; item.Source = FindPort(link.Source, link.SourcePort); item.Target = FindPort(link.Target, link.TargetPort); var b = new Binding("Text"); b.Source = link; item.SetBinding(LinkBase.LabelProperty, b); return(item); }
private Control CreateLink(Link link) { var item = new OrthogonalLink(); item.ModelElement = link; item.EndCap = true; item.Source = FindPort(link.Source, link.SourcePort); item.Target = FindPort(link.Target, link.TargetPort); item.ControlPoint1 = link.ControlPoint1; item.ControlPoint2 = link.ControlPoint2; item.Message = link.Message; item.Action = link.Action; var b = new Binding("Message"); b.Source = link; item.SetBinding(LinkBase.LabelProperty, b); return(item); }