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