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.1.dll
NuGet Package: DevExpress.Wpf.Accordion
Declaration
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