Sets the object that the command is being executed on.
Syntax
'Declaration
Public Shared Sub SetCommandTarget( _
ByVal As System.Windows.FrameworkElement, _
ByVal 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 ,
System.Windows.UIElement
)
Parameters
- element
- The element to which the attached property is written.
- value
- The object that the command is being executed on.
See Also