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

ShortcutItemClickEventArgs.Cancel Property

Gets or sets whether to stop processing a pressed shortcut and so stop the bar item’s functionality from being invoked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool Cancel { get; set; }

#Property Value

Type Description
Boolean

true if processing of the shortcut should be canceled; otherwise, false.

#Remarks

Set the Cancel parameter to true to cancel processing of a shortcut and therefore prevent the item’s functionality from being invoked. This can be useful, for instance, if the shortcut should be directed to the currently focused control and not intercepted by the BarManager.

Otherwise, the Bar Manager will invoke the item’s functionality and the currently focused control on your form will not receive key presses.

See the BarManager.ShortcutItemClick event for more information.

See Also