Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drawing a link on an empty diagram (Read 261 times)
Kamil
YaBB Newbies
*
Offline



Posts: 22
Joined: Aug 22nd, 2024
Drawing a link on an empty diagram
Sep 26th, 2024 at 10:00am
Print Post  
Could you advise me on how to draw a link in the same manner as we draw shapes? I noticed that mindfusion offers DrawLinks behavrior:
https://www.mindfusion.eu/onlinehelp/maui.diagram/T_MindFusion_Diagramming_Xamar...

The documentation also says that drawing needs to be started over a node in order to create a diagram link. I would like to start drawing a link on an empty diagram (without any start or destination nodes predefined).
How should I do that?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3328
Joined: Oct 19th, 2005
Re: Drawing a link on an empty diagram
Reply #1 - Sep 26th, 2024 at 12:16pm
Print Post  
You might also have to enable allowUnconnectedLinks:

Code
Select All
diagramView.behavior = Behavior.DrawLinks;
diagram.allowUnconnectedLinks = true; 



Regards,
Slavcho
Mindfusion

  
Back to top
 
IP Logged
 
Kamil
YaBB Newbies
*
Offline



Posts: 22
Joined: Aug 22nd, 2024
Re: Drawing a link on an empty diagram
Reply #2 - Sep 27th, 2024 at 9:48am
Print Post  
Works perfectly! Thanks Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint