开发者

How do I perform hit test in TreeView for TreeViewItem?

开发者 https://www.devze.com 2023-01-07 10:45 出处:网络
I have a System.Windows.Controls.TreeView in my project, and when the user right click in i开发者_Python百科t, I\'m displaying a context menu. Since the context menu is built dynamically, I need to kn

I have a System.Windows.Controls.TreeView in my project, and when the user right click in i开发者_Python百科t, 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消