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

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