Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Customizing diagram links (Read 4741 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Customizing diagram links
Jan 13th, 2010 at 1:46pm
Print Post  
Hello, Stoyan!
Is there any way to change direction and position of arrowhead of the link or set for example arrows at the both ends of the link?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customizing diagram links
Reply #1 - Jan 13th, 2010 at 2:17pm
Print Post  
Hi,

You can set the HeadShape and BaseShape properties to display arrowheads at both ends. You might also handle the DrawLink event and use the DrawArrowhead method to render arrowheads anywhere you'd like.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Customizing diagram links
Reply #2 - Jan 13th, 2010 at 2:31pm
Print Post  
Ok. I try to do it. Thank you. But to handle DrawLink event is not a solution for me because I want to change links from the property grid when they are already drawn in the following way:
  • --------->
  • <--------
  • ----------
  • <-------->
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customizing diagram links
Reply #3 - Jan 13th, 2010 at 2:52pm
Print Post  
Do you mean you need to reverse the links' direction?
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Customizing diagram links
Reply #4 - Jan 13th, 2010 at 2:55pm
Print Post  
Yes, reverse link direction is need too. I want to create behavior similiar to MS Visio links for example
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customizing diagram links
Reply #5 - Jan 13th, 2010 at 3:13pm
Print Post  
You could either exchange the Origin / Destination values to really reverse the link, or exchange HeadShape / BaseShape to reverse only the arrowheads.
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Customizing diagram links
Reply #6 - Jan 13th, 2010 at 3:55pm
Print Post  
Thank you very much!
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Customizing diagram links
Reply #7 - Feb 1st, 2010 at 11:10am
Print Post  
When I set for link Base and Head shapes null (link without arrows) and save it to xml it don't set tags: BaseShape and HeadShape. After that I load diagram from xml and I see that saved link loaded as link with HeadShape = arrow.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customizing diagram links
Reply #8 - Feb 1st, 2010 at 12:01pm
Print Post  
Hi,

Please try this version -
https://mindfusion.eu/_beta/wpfdiag231.zip

Stoyan
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Customizing diagram links
Reply #9 - Feb 1st, 2010 at 1:59pm
Print Post  
Thanks! All is ok
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint