wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-98280987.md
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.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public ObservableCollection<IControllerAction> ContextMenuCustomizations { get; }
Public ReadOnly Property ContextMenuCustomizations As ObservableCollection(Of IControllerAction)
| Type | Description |
|---|---|
| ObservableCollection<IControllerAction> |
A collection of IControllerAction objects.
|
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