BaseLayoutItem.ContextMenuCustomizations Property
Allows you to add new menu items or remove existing items from the layout item’s context menu.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.1.dll
NuGet Package: DevExpress.Wpf.Docking
Declaration
Property Value
Type | Description |
---|---|
ObservableCollection<IControllerAction> | A collection of IControllerAction objects. |
Remarks
To add custom items to the BaseLayoutItem Context Menu, use the ContextMenuCustomizations property:
<dxdo:DockLayoutManager >
<dxdo:LayoutGroup>
<dxdo:TabbedGroup>
<dxdo:LayoutPanel TabCaption="First Item">
<dxdo:LayoutPanel.ContextMenuCustomizations>
<dxb:InsertAction Index="0">
<dxb:BarCheckItem Content="This is a custom menu item" CheckedChanged="BarCheckItem_CheckedChanged"/>
</dxb:InsertAction>
</dxdo:LayoutPanel.ContextMenuCustomizations>
<!-- ... -->
</dxdo:LayoutPanel>
<!-- ... -->
</dxdo:TabbedGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
See Also