Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public void ShowContextMenu(
    BaseLayoutItem item
)

#Parameters

Name Type Description
item BaseLayoutItem

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

#Remarks

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

ContextMenu

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