The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.1.dll

Declaration

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

Parameters

Name Type Description
d DependencyObject

The element to which the attached property is written.

menu ContextMenu

The required ContextMenu value.

See Also