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