Skip to main content
A newer version of this page is available. .

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

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