Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to add text inside the link? (Read 1108 times)
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
How to add text inside the link?
Oct 23rd, 2010 at 1:10pm
Print Post  
My requirement is to add TEXT inside the decision link as like below.

Also there should be down arrow added along with the text, when user click on that arrow it should show context menu.


---- Failure ---- /\ ---- Success ----
| \/ |
| |
| |


Please help any one me. Its is really very urgent
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to add text inside the link?
Reply #1 - Oct 25th, 2010 at 3:47am
Print Post  
You can either use custom drawing or attached nodes to implement this.

Custom drawing can be done by deriving from the DiagramLink class and overriding its Draw method, or by setting the CustomDraw property and handling the DrawLink event. Then you can use the DrawingContext methods to render the arrow and labels.

The other option is to use the AttachTo method to attach three auxiliary nodes to the link so that they display the labels and menu arrow. You can also combine this with a LinkModifying handler that distributes the attached nodes uniformly along the horizontal link segment.

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