This project is read-only.

Need to place a text near an edge

Apr 17, 2012 at 9:56 PM
Edited Apr 17, 2012 at 10:08 PM

I'm trying to draw a graph formed of vertices and edges joining them, and I need to place some text beside each edge so that if I move any vertex at the run time, the text stays in the right place according to the edge.

In other words, what I'm trying to do is somehow like the following,

      (text1)          (text2)
v1 ----------> v2 ----------> v3


Hope I made my idea clear enough.

Apr 17, 2012 at 11:10 PM

You should modify the controltemplate of the edge. Positioning of the edge labels is not implemented in the framework, it's your job to do.

Apr 17, 2012 at 11:11 PM

See this discussion for more information: