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

AccordionControlElementBase.ContextButtons Property

Provides access to context buttons displayed in this navigation element.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
public AccordionContextItemCollection ContextButtons { get; }

#Property Value

Type Description
AccordionContextItemCollection

A DevExpress.Utils.ContextItemCollection object that stores context buttons displayed in this navigation element.

#Remarks

A navigation element can display context buttons. In the figure below, the All element displays a context button.

image

The ContextButtons property provides access to the collection that contains context buttons displayed in the navigation element. Use the collection’s methods to add/remove context buttons.

using DevExpress.Utils;
using DevExpress.XtraBars.Navigation;

AccordionContextButton button = new AccordionContextButton();
button.ImageOptionsCollection.ItemNormal.Image = imageCollection1.Images[0];
aceAllFilterContact.ContextButtons.Add(button);

In the designer, you can use the Properties window to access the Context Buttons Collection Editor.

image

The element pop-up menu also provides access the Context Buttons Collection Editor.

image

See Also