ComponentOne Basic Library for UWP
C1.UWP Assembly / C1.Xaml Namespace / CommandExtensions Class / SetCommand Method
The element to which the attached property is written.
The needed System.Windows.Input.ICommand value.

In This Topic
    SetCommand Method
    In This Topic
    Sets the command that will be executed when the command source is invoked.
    Syntax
    'Declaration
     
    Public Shared Sub SetCommand( _
       ByVal element As Windows.UI.Xaml.FrameworkElement, _
       ByVal value As System.Object _
    ) 
    public static void SetCommand( 
       Windows.UI.Xaml.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