Skip to main content

RepositoryItemPictureEdit.PopupMenuShowing Event

Fires when the context menu is about to be displayed.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event PopupMenuShowingEventHandler PopupMenuShowing

Event Data

The PopupMenuShowing event's data class is DevExpress.XtraEditors.Events.PopupMenuShowingEventArgs.

Remarks

If the ShowMenu property is set to true, the context menu is shown when an end-user right-clicks the editor. The PopupMenuShowing event fires when the context menu is about to be displayed. Handle the PopupMenuShowing event to customize the context menu or to prevent the menu from being displayed.

The PictureEdit.PopupMenuShowing event is equivalent to the RepositoryItemPictureEdit.PopupMenuShowing event.

The following table lists event parameters:

Property Description
e.Point Allows you to obtain the position at which the editor is right-clicked.
e.PopupMenu Allows you to access and customize the menu. The menu is represented by a DXPopupMenu object.
e.RestoreMenu Allows you to specify whether to restore the context menu to the default settings after the menu has been displayed.
e.Cancel Allows you you to prevent the menu from being displayed.
See Also