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: Assign Hints to the NavBarControl's Items

The following sample code assigns hints to all items of the NavBarControl. This is performed via the NavElement.Hint property of NavBarItem objects. Item captions are assigned as hint text.

The NavBarControl.ShowLinkHint property is set to true to enable displaying link hints. Review the image below for an example of code execution results.

Hints - Items

using DevExpress.XtraNavBar;
// ...
for (int i = 0; i < navBarControl1.Items.Count; i++) {
   NavBarItem currItem = navBarControl1.Items[i];
   currItem.Hint = currItem.Caption;
}
navBarControl1.ShowLinkHint = true;