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

AccordionControl.PopupMenuActions Property

Provides access to the collection of actions used to customize the accordion’s popup menu.

Namespace: DevExpress.Xpf.Accordion

Assembly: DevExpress.Xpf.Accordion.v24.2.dll

NuGet Package: DevExpress.Wpf.Accordion

#Declaration

public ObservableCollection<IControllerAction> PopupMenuActions { get; }

#Property Value

Type Description
ObservableCollection<IControllerAction>

A collection of context menu customization actions.

#Remarks

Use the PopupMenuActions property to provide custom menu items within the AccordionControl popup menu. The popup menu is displayed when the AccordionControl.ViewMode property is set to AccordionViewMode.NavigationPane and the AccordionControl.AllowPopupMenu is set to true.

The code sample below demonstrates how to add a new menu item to the accordion’s popup menu.

<dxa:AccordionControl x:Name="accordion" ViewMode="NavigationPane"
                      AllowPopupMenu="True">
...
    <dxa:AccordionControl.PopupMenuActions>
        <dxb:InsertAction>
            <dxb:InsertAction.Element>
                <dxb:BarButtonItem Content="My Custom Button" ItemClick="BarButtonItem_ItemClick"/>
            </dxb:InsertAction.Element>
        </dxb:InsertAction>
    </dxa:AccordionControl.PopupMenuActions>
</dxa:AccordionControl>
See Also