Patrik Svensson
Patrik Svensson

Reputation: 13874

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?

Upvotes: 0

Views: 757

Answers (1)

Related Questions