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

How to: Create a category and add a bar item to it

The following code shows how to create a new category and a bar item, and assign the item to the category:

using DevExpress.XtraBars;
//...
BarManagerCategory category = barManager1.Categories.Add("Development");
BarItem item = new BarButtonItem(barManager1, "Tool1");
item.Category = category;
//customize the item and add it to a bar/menu
//...