Skip to main content

BarManager.ResetUsageData() Method

Clears the record of menu items recently accessed by a user in their application and restores the default set of visible item controls to menus and bars. This action will not undo any explicit customizations.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual void ResetUsageData()


XtraBars supports recently and not recently used links in menus. Recently used links are always displayed when a menu is opened. Links not recently used are hidden when a menu is opened for the first time:


If the menu contains links not recently used, a down button with two arrows is displayed. A user can hover the mouse pointer over this button or click the button to access these links. Finally, links not recently used will be made visible again within the menus, after they have been clicked a certain number of times.

The ResetUsageData method restores the internal counters used to store the number of clicks each link has received. So, after this method is called, the links within a menu will appear as they were when the menu was opened for the first time.

See Also