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.v24.2.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
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:
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.