Back to Devexpress

OfficeNavigationBar.MaxItemCount Property

wpf-devexpress-dot-xpf-dot-navigation-dot-officenavigationbar-c03b55ae.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public int MaxItemCount { get; set; }
vb
Public Property MaxItemCount As Integer

Property Value

TypeDescription
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

CustomizationButtonVisibility

OfficeNavigationBar Class

OfficeNavigationBar Members

DevExpress.Xpf.Navigation Namespace