Skip to main content
Bar

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.1.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