views:

49

answers:

1

I have a System.Windows.Controls.TreeView in my project, and when the user right click in it, I'm displaying a context menu. Since the context menu is built dynamically, I need to know the System.Windows.Controls.TreeViewItem that the mouse is hovering over.

How do I do this?

+1  A: 

Visit this link and here you can download libs for using ContextMenu

Eugene Cheverda
I don't quite understand this code I'm afraid since I'm new to Silverlight. Would you mind explaining how I use it? Thanks.
Patrik
Check updated answer.
Eugene Cheverda