[]
        
(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)
Parameters
Type Name Description
DependencyObject element

The Control to which the context menu is attached.

IC1ContextMenu value

The context menu to set.