Sets the command that will be executed when the command source is invoked.
Syntax
'Declaration
Public Shared Sub SetCommand( _
ByVal As System.Windows.FrameworkElement, _
ByVal As System.Object _
)
'Usage
Dim element As System.Windows.FrameworkElement
Dim value As System.Object
CommandExtensions.SetCommand(element, value)
public static void SetCommand(
System.Windows.FrameworkElement ,
System.object
)
Parameters
- element
- The element to which the attached property is written.
- value
- The needed System.Windows.Input.ICommand value.
See Also