InvokeCommandAction ic = new InvokeCommandAction(); ic.Command = tree.SelectedItemCommand;//绑定的命令 ic.CommandParameter = treeView; System.Windows.Interactivity.EventTrigger et = new System.Windows.Interactivity.EventTrigger(); et.EventName = "Selected…