Skip to main content

OfficeNavigationBar.MaxItemCount Property

Get or sets the maximum number of items that can be displayed in the current OfficeNavigationBar. This is a dependency property.

Namespace: DevExpress.Xpf.Navigation

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public int MaxItemCount { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the maximum number of items that can be displayed in the current OfficeNavigationBar. The default is -1.

Remarks

In XAML, you can declare items to be displayed in the current OfficeNavigationBar between its opening and closing tags. By default, the OfficeNavigationBar displays as many items as the bar width allows. The hidden items are accessible via the OfficeNavigationBar context menu, which is invoked with a click on the Customization button (see OfficeNavigationBar.CustomizationButtonVisibility). The MaxItemCount property allows you to restrict the number of items displayed in the current OfficeNavigationBar. At run time, an end-user can restrict the number of visible items using the Navigation Options dialog, which is also can be invoked via the context menu.

See Also