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

BarPopupBase.ShowElementContextMenu(Object) Method

Displays a context menu associated with the specified element.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public static void ShowElementContextMenu(
    object contextMenuElement
)

Parameters

Name Type Description
contextMenuElement Object

An object representing the element for which the menu is associated.

Remarks

To associate a context menu with an UIElement, use the BarManager.DXContextMenu attached property. The ShowElementContextMenu method displays the associated menu.

See Also