Skip to main content
Bar

BarManager.QueryShowPopupMenu Event

Occurs when a control’s PopupContextMenu is about to appear.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DXCategory("Events")]
public event QueryShowPopupMenuEventHandler QueryShowPopupMenu

Event Data

The QueryShowPopupMenu event's data class is QueryShowPopupMenuEventArgs. The following properties provide information specific to this event:

Property Description
BreakShowPopupMenu Gets or sets whether or not the parent BarManager.QueryShowPopupMenu event should affect only the BarManager itself.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Control Gets a control whose popup menu is queried.
Menu Gets the popup menu that is about to be displayed.
Position Gets or sets the position of the queried menu popup.

Remarks

This event allows you to customize the menu assigned to a control’s PopupContextMenu extender property. This property is automatically added at design time to all controls that have the same parent as the BarManager component. At runtime, the PopupContextMenu extender property can be set via the BarManager.SetPopupContextMenu method.

For more information, see the BarManager topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryShowPopupMenu event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also