Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Gap between Links (Read 1363 times)
Dirk Frischalowski
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Location: Germany
Joined: Jun 14th, 2012
Gap between Links
Jul 12th, 2013 at 12:13pm
Print Post  
Hallo,

we use the RouteLinks=true - Property on the Diagram control for automatic link routing. When a user draws 2 Links between the same 2 Nodes the Links are layouted one above the other. We want a small gap between the Links to visually show the user that there are 2 connections between the nodes (or more).

Can we do this with setting some properties or do we have to programm something for that functionality?

We want this gap also for all incoming and outgoing links on one node.

Thanks for help!
regards
Dirk
  

AutoLinkGap.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Gap between Links
Reply #1 - Jul 13th, 2013 at 11:32am
Print Post  
Hi,

Try calling ReassignAnchorPoints from LinkCreated handler:

Code
Select All
private void diagram_LinkCreated(object sender, LinkEventArgs e)
{
	var link = e.Link;
	link.Origin.ReassignAnchorPoints();
	link.Destination.ReassignAnchorPoints();
} 



Or see some alternative methods here:
http://mindfusion.eu/Forum/YaBB.pl?num=1227111424/1#1
http://mindfusion.eu/Forum/YaBB.pl?num=1266388133/8#8

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint