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

BarManager.ResetUsageData() Method

In This Article

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

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual void ResetUsageData()

#Remarks

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:

Bars3_Menu_RecentItems

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