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


public int MostRecentItemsPercent { get; set; }
Public Property MostRecentItemsPercent As Integer

Property Value

Type Default Description


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


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