ComponentOne Basic Library for WPF and Silverlight
GetCommandTarget Method


C1.Silverlight Namespace > CommandExtensions Class : GetCommandTarget Method
The element from which the property value is read.
Gets the object that the command is being executed on.
Syntax
'Declaration
 
Public Shared Function GetCommandTarget( _
   ByVal element As System.Windows.FrameworkElement _
) As System.Windows.UIElement
'Usage
 
Dim element As System.Windows.FrameworkElement
Dim value As System.Windows.UIElement
 
value = CommandExtensions.GetCommandTarget(element)
public static System.Windows.UIElement GetCommandTarget( 
   System.Windows.FrameworkElement element
)

Parameters

element
The element from which the property value is read.

Return Value

The object that the command is being executed on.
See Also

Reference

CommandExtensions Class
CommandExtensions Members