Skip to main content
A newer version of this page is available. .

BaseLayoutItem.ContextMenuCustomizations Property

Allows you to customize the layout item’s context menu by adding new menu items or removing existing items.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public ObservableCollection<IControllerAction> ContextMenuCustomizations { get; }

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, as shown in the code sample below:

<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