ContextMenu.SetMenu(DependencyObject, ContextMenu) Method

Sets the value of the ContextMenu.Menu attached property to a specified DependencyObject.

Namespace: DevExpress.UI.Xaml

Assembly: DevExpress.UI.Xaml.v18.2.dll

Declaration

public static void SetMenu(
    DependencyObject d,
    ContextMenu menu
)
Public Shared Sub SetMenu(
    d As DependencyObject,
    menu As ContextMenu
)

Parameters

Type Name Description
Windows.UI.Xaml.DependencyObject d

The element to which the attached property is written.

ContextMenu menu

The required ContextMenu value.

See Also