A newer version of this page is available. Switch to the current version.

DockLayoutManager.ShowContextMenu(BaseLayoutItem) Method

Displays a context menu with the dock commands related to the specified item.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v19.1.dll


public void ShowContextMenu(
    BaseLayoutItem item
Public Sub ShowContextMenu(
    item As BaseLayoutItem


Name Type Description
item BaseLayoutItem

A BaseLayoutItem for which a context menu is to be displayed.


Dock panels support context menus, invoked on right-clicking on the panel's caption:


The ShowContextMenu method allows a panel's context menu to be manually invoked. The menu is displayed at the cursor's position.

To customize the menu, handle the DockLayoutManager.ShowingMenu event, or add menu customization actions via the DockLayoutManager.ContextMenuCustomizations property.

See Also