Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.dll

NuGet Package: DevExpress.Wpf.Docking

#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:

<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