WPF TreeView 节点双击事件
程序员文章站
2022-06-08 13:55:37
...
private void MyTree_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if(e.ClickCount != 2)
{
return;
}
if(null!=this.MyTree.SelectedItem)
{
var curSel = this.MyTree.SelectedItem as MyTreeNode;
MessageBox.Show(curSel.name);
}
}
上一篇: Git标签
下一篇: WPF如何实现TreeView节点重命名