[]
        
(Showing Draft Content)

C1.WinUI.Menu.C1ContextMenuService.SetContextMenu

SetContextMenu Method

SetContextMenu(DependencyObject, IC1ContextMenu)

Sets the context menu for a control.

Declaration
public static void SetContextMenu(DependencyObject element, IC1ContextMenu value)
Public Shared Sub SetContextMenu(element As DependencyObject, value As IC1ContextMenu)
Parameters
Type Name Description
DependencyObject element

The Control to which the context menu is attached.

IC1ContextMenu value

The context menu to set.