WinUI | ComponentOne
C1.WinUI.Menu Assembly / C1.WinUI.Menu Namespace / C1ContextMenuService Class / SetContextMenu Method
The Control to which the context menu is attached.
The context menu to set.
In This Topic
    SetContextMenu Method
    In This Topic
    Sets the context menu for a control.
    Syntax
    public static void SetContextMenu( 
       DependencyObject element,
       IC1ContextMenu value
    )

    Parameters

    element
    The Control to which the context menu is attached.
    value
    The context menu to set.
    See Also