Skip to main content

Microsoft Silverlight

Answered Question Arrow ControlRSS Feed

(0)

moorster
moorster

Member

Member

6 points

11 Posts

Arrow Control

I'd like to make an "arrow" control that I can use to connect two arbitrarily-placed controls on a Canvas.  I'd like the arrow control to consist of a line and an arrowhead, respond to mouseover and click events and have an attached textual label. Can someone point me in the right direction? Should I use a UserControl containing a Path or should I inherit from the Line control?

jay nanavati
jay nana...

Contributor

Contributor

3388 points

624 Posts

Answered Question

Re: Arrow Control

Hey what about this?

http://fluxcapacity.net/2007/09/01/a-silverlight-graph-visualizer/

the source code is here:

http://fluxcapacity.net/wp-content/uploads/2008/4/GRender2Beta1.zip

 

Jay K Nanavaty
www.technologyopinion.com
Mark as answer if it helps. It will also help others...

moorster
moorster

Member

Member

6 points

11 Posts

Re: Arrow Control

 Cool! It looks like he's using Canvas objecs for the nodes then conneting them with Line objects drawn on the parent Canvas objects. That's a pretty cool solution.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities