Back to Devexpress

DockLayoutManager.ShowContextMenu(BaseLayoutItem) Method

wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-dot-showcontextmenu-x28-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-x29.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public void ShowContextMenu(
    BaseLayoutItem item
)
vb
Public Sub ShowContextMenu(
    item As BaseLayoutItem
)

Parameters

NameTypeDescription
itemBaseLayoutItem

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:

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

ShowItemSelectorMenu(UIElement, BaseLayoutItem[])

ContextMenuCustomizations

ItemSelectorMenuCustomizations

CloseMenu()

ShowingMenu

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace