回复 3楼p332718873的帖子
试试这个代码:
- private void C1TreeView_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
- {
- object oo = tree1.SelectedItem;
- string text = (e.OriginalSource as TextBlock).Text;
-
- //如何根据point取得点击的是哪个节点了?
- object ooo = tree1.FindItem(text); //节点
- }
复制代码
by the way: Point p = e.GetSafePosition(tree1);
这个方法好像不存在啊!
我的C1TreeView的版本是:5.0.20132.353 |