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

BarItem.AllowRightClickInMenu Property

Gets or sets if the current command’s functionality is invoked via the right mouse click when in a sub-menu or popup menu.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowRightClickInMenu { get; set; }

#Property Value

Type Default Description
Boolean true

true if the current command’s functionality is invoked via the right mouse click when in a sub-menu or popup menu; otherwise, false.

#Remarks

BarItemLinks corresponding to the current BarItem can be placed within sub-menus or popup menus. By default, you can invoke an item’s functionality with both a right and left mouse click. This raises the BarManager.ItemClick and BarItem.ItemClick events. The AllowRightClickInMenu property allows you to prevent the item’s functionality from being invoked on a right mouse click.

See Also