Skip to main content

How to: Assign Hints to the NavBarControl's Groups

The following sample code assigns hints to all groups of the NavBarControl control. This is performed via the NavElement.Hint property of NavBarGroup objects. Group captions are assigned as hint text.

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

Hints - Groups

using DevExpress.XtraNavBar;
// ...
for (int i = 0; i < navBarControl1.Groups.Count; i++) {
   NavBarGroup currGroup = navBarControl1.Groups[i];
   currGroup.Hint = currGroup.Caption;
}
navBarControl1.ShowGroupHint = true;