Back to Devexpress

BarItem.AllowRightClickInMenu Property

windowsforms-devexpress-dot-xtrabars-dot-baritem-7914e7de.md

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowRightClickInMenu { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property AllowRightClickInMenu As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

IsLinkInMenu

ItemClick

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace