Skip to main content

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.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public static void SetMenu(
    DependencyObject d,
    ContextMenu menu
)

Parameters

Name Type Description
d DependencyObject

The element to which the attached property is written.

menu ContextMenu

The required ContextMenu value.

See Also