ComponentOne Basic Library for WPF and Silverlight
GetCommand Method


C1.Silverlight Namespace > CommandExtensions Class : GetCommand Method
The element from which the property value is read.
Gets the command that will be executed when the command source is invoked.
Syntax
'Declaration
 
Public Shared Function GetCommand( _
   ByVal element As System.Windows.FrameworkElement _
) As System.Object
'Usage
 
Dim element As System.Windows.FrameworkElement
Dim value As System.Object
 
value = CommandExtensions.GetCommand(element)
public static System.object GetCommand( 
   System.Windows.FrameworkElement element
)

Parameters

element
The element from which the property value is read.

Return Value

The System.Windows.Input.ICommand property value for the element.
See Also

Reference

CommandExtensions Class
CommandExtensions Members