Method SetCommand
SetCommand(FrameworkElement, ICommand)
Sets the command associated with the specified framework element.
public static void SetCommand(FrameworkElement treeView, ICommand command)
Parameters
treeViewFrameworkElementThe framework element.
commandICommandThe command to associate with the framework element.