Search code examples
c#treeviewsilverlight-4.0hittesttreeviewitem

How do I perform hit test in TreeView for TreeViewItem?


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?


Solution

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