RepositoryItemPictureEdit.PopupMenuShowing Event
Fires when the context menu is about to be displayed.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v23.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The PopupMenuShowing event's data class is DevExpress.XtraEditors.Events.PopupMenuShowingEventArgs.
Remarks
If the RepositoryItemPictureEdit.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 this event to customize the context menu or to prevent it from being displayed. The PictureEdit.PopupMenuShowing event is equivalent to the current event.
The following PopupMenuShowingEventArgs properties provide information specific to this event:
Property | Description |
---|---|
Point | Allows you to obtain the position at which the editor is right-clicked. |
PopupMenu | Allows you to access and customize the menu that is about to be displayed. The menu is represented by a DXPopupMenu object. |
RestoreMenu | Allows you to specify whether to restore the context menu to the default settings after the menu has been displayed. |
Cancel | Allows you you to prevent the menu from being displayed. |