All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Caption Bar Items

You can display static labels, buttons or any other bar items in a RibbonForm‘s caption (title) bar.

Ribbon Caption Bar Item

Add Commands to the Caption Bar

At design time, the RibbonForm displays the Add Item button in the caption bar. This button allows you to select a bar item and add it to the caption bar.

Ribbon Caption Bar Item Design Time

You can also use the CaptionBarItemLinks collection to add bar items to the caption bar in code.

BarButtonItem barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
barButtonItem2.Caption = "Sign in";
barButtonItem2.Hint = "Not signed in";
barButtonItem2.ImageOptions.ImageUri.Uri = "business%20objects/bo_employee";

ribbonControl1.CaptionBarItemLinks.Add(barButtonItem2);

Customize Caption Bar Items

Use the created bar item’s smart tag menu to specify the icon, tooltip, and caption.

Ribbon Caption Bar Item Smart Tag Menu

You should enable the ShowItemCaptionsInCaptionBar option to display the bar item’s caption.

Ribbon Title Bar Item Caption