Back to Devexpress

AccordionControl.PopupMenuActions Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-538cd107.md

latest2.6 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

csharp
public ObservableCollection<IControllerAction> PopupMenuActions { get; }
vb
Public ReadOnly Property PopupMenuActions As ObservableCollection(Of IControllerAction)

Property Value

TypeDescription
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.

xaml
<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

AccordionControl Class

AccordionControl Members

DevExpress.Xpf.Accordion Namespace