Method SetCommand
SetCommand(FrameworkElement, ICommand)
Sets the command associated with the control.
public static void SetCommand(FrameworkElement item, ICommand command)
Parameters
item
FrameworkElementThe control.
command
ICommandThe command to associate with the control.