views:

979

answers:

2

I want to have context menus attached to tree items in my Silverlight Toolkit tree. How can I do this?

+1  A: 

One way is vendor provided.....

Telerik has RADControls for Silverlight, the contextmenu control can be attached to tree views.

http://www.telerik.com/products/silverlight.aspx

and

http://www.telerik.com/products/silverlight/contextmenu.aspx

for more details and demo with tree

curtisk
But if they can pull it off, so can I, right?
Dmitri Nesteruk
Ahhh! The challenge at hand! I like your style!
curtisk
+2  A: 

Right click support is only supported via Javascript, so the vendor route is a good way to go.

Curtisk's suggestion of the Telerik control is a good choice, but this can be tricky to implement first time - if you go this route make sure you pay a few extra pounds for their support - the documentation is lousy.

Have you considered any alternatives to context menus? At the moment I am working on project porting a thick client application to Silverlight. We had a lot of right click context in the thick app, and after consulting with Microsoft's UX team and also looking at the examples on Quince UX we decided to implement our context menus in a permanent task based menu on the right hand side of our screen. Implementation is a doodle with binding and, most importantly, our users have received this well :-)

HTH, Mark

Mark Cooper