Skip to main content
Bar

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

BarManagerProperties.MostRecentItemsPercent Property

Gets or sets the value (as a percentage) that determines which of the menu items that haven’t recently been used should be hidden.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(95)]
public int MostRecentItemsPercent { get; set; }

#Property Value

Type Default Description
Int32 95

The value, as a percentage, for calculating the most frequently used items.

#Remarks

When a menu is about to appear, the Bar Manager determines which items that haven’t recently been clicked should be displayed according to the number of clicks (press events) that have occurred on other items. The MostRecentItemsPercent property indirectly determines the minimum number of clicks in total that other items in the menu must receive (since this item was last clicked) before it is hidden. For instance, if this property is set to 40 after one item has been clicked 3 times, any item in the same menu that has not been clicked during this period will be hidden.

If this property’s value is set to 100, all links will always be visible. The lower the value the more quickly links not recently used will be hidden. Note: After a hidden item is clicked once it remains visible, until it is not used for the requisite number of clicks.

The BarManager.MostRecentItemsPercent property allows you to override the BarManagerProperties.MostRecentItemsPercent setting for certain BarManagers.

See Also