ComponentOne Basic Library for WPF and Silverlight
SetCommandTarget Method


C1.Silverlight Namespace > CommandExtensions Class : SetCommandTarget Method
The element to which the attached property is written.
The object that the command is being executed on.
Sets the object that the command is being executed on.
Syntax
'Declaration
 
Public Shared Sub SetCommandTarget( _
   ByVal element As System.Windows.FrameworkElement, _
   ByVal value As System.Windows.UIElement _
) 
'Usage
 
Dim element As System.Windows.FrameworkElement
Dim value As System.Windows.UIElement
 
CommandExtensions.SetCommandTarget(element, value)
public static void SetCommandTarget( 
   System.Windows.FrameworkElement element,
   System.Windows.UIElement value
)

Parameters

element
The element to which the attached property is written.
value
The object that the command is being executed on.
See Also

Reference

CommandExtensions Class
CommandExtensions Members