Back to Devexpress

RepositoryItemPictureEdit.PopupMenuShowing Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-37f0f43b.md

latest2.5 KB
Original Source

RepositoryItemPictureEdit.PopupMenuShowing Event

Fires when the context menu is about to be displayed.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event PopupMenuShowingEventHandler PopupMenuShowing
vb
<DXCategory("Events")>
Public Event PopupMenuShowing As PopupMenuShowingEventHandler

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:

PropertyDescription
e.PointAllows you to obtain the position at which the editor is right-clicked.
e.PopupMenuAllows you to access and customize the menu. The menu is represented by a DXPopupMenu object.
e.RestoreMenuAllows you to specify whether to restore the context menu to the default settings after the menu has been displayed.
e.CancelAllows you you to prevent the menu from being displayed.

See Also

ShowMenu

PopupMenuShowing

RepositoryItemPictureEdit Class

RepositoryItemPictureEdit Members

DevExpress.XtraEditors.Repository Namespace