Skip to main content

NavBarControl.NavigationPaneMaxVisibleGroups Property

Gets the maximum number of groups for which buttons are displayed within a NavBarControl when the “NavigationPane” view is applied.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty]
public int NavigationPaneMaxVisibleGroups { get; set; }

Property Value

Type Default Description
Int32 -1

The maximum number of groups for which buttons are displayed in the “NavigationPane” view. -1 if the maximum number of group buttons is not limited.

Remarks

When the “NavigationPane” view is applied, the NavBarControl allows the contents of only one group to be displayed at a time. For other groups the NavBarControl provides group buttons at the bottom of the control. An end-user can click a group button to expand the corresponding group’s contents.

The NavigationPaneMaxVisibleGroups property determines the maximum number of group buttons that can be displayed at the control’s bottom. If you have more groups than the specified maximum value, icons for the extra groups are added to the Overflow panel. Clicking an icon is similar to clicking the group’s button.

The following image shows the NavBarControl displaying three group buttons. One group is displayed within the Overflow panel:

NavPane_Overflow2

See Also