Click.SetCommand Method
Sets the ICommand to execute on the click event.
Namespace: Microsoft.Practices.Prism.Commands
Assembly: Microsoft.Practices.Prism (in Microsoft.Practices.Prism.dll)
Syntax
public static void SetCommand(
ButtonBase buttonBase,
ICommand command
)
'Declaration
Public Shared Sub SetCommand ( _
buttonBase As ButtonBase, _
command As ICommand _
)
Parameters
- buttonBase
Type: System.Windows.Controls.Primitives.ButtonBase
ButtonBase dependency object to attach command
- command
Type: System.Windows.Input.ICommand
Command to attach