ComponentOne Basic Library for WPF and Silverlight
SetCommand Method


C1.Silverlight Namespace > CommandExtensions Class : SetCommand Method
The element to which the attached property is written.
The needed System.Windows.Input.ICommand value.
Sets the command that will be executed when the command source is invoked.
Syntax
'Declaration
 
Public Shared Sub SetCommand( _
   ByVal element As System.Windows.FrameworkElement, _
   ByVal value 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 element,
   System.object value
)

Parameters

element
The element to which the attached property is written.
value
The needed System.Windows.Input.ICommand value.
See Also

Reference

CommandExtensions Class
CommandExtensions Members