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

DockLayoutManager.ShowItemSelectorMenu(UIElement, BaseLayoutItem[]) Method

Displays a panel selector menu, used to activate an auto-hidden panel or a child panel within a TabbedGroup or a DocumentPanel within a DocumentGroup.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public void ShowItemSelectorMenu(
    UIElement source,
    BaseLayoutItem[] items
)
Public Sub ShowItemSelectorMenu(
    source As UIElement,
    items As BaseLayoutItem()
)

Parameters

Name Type Description
source UIElement

A visual element for which the menu is invoked.

items BaseLayoutItem[]

An array of BaseLayoutItem objects for which menu items in the menu will be created. Clicking on any menu item will activate the corresponding BaseLayoutItem object.

Remarks

The panel selector menu allows an auto-hidden panel or a child panel within a TabbedGroup or a DocumentPanel within a DocumentGroup to be activated. Clicking a corresponding menu item activates the corresponding panel:

ItemSelectorMenu

The panel selector menu is automatically displayed when right-clicking on:

  • an empty area of an auto-hide container
  • an empty area of the tab header region within a TabbedGroup
  • an empty area of the tab header region within a DocumentGroup

The ShowItemSelectorMenu method can be used to manually invoke the selector menu. The method's items parameter specifies the layout items (panels) to be shown in the menu.

To customize the selector menu, use the DockLayoutManager.ItemSelectorMenuCustomizations property.

See Also