Skip to main content

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

RepositoryItemImageEdit.ShowMenu Property

Gets or sets a value indicating whether the context menu is displayed when the dropdown window is right-clicked.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool ShowMenu { get; set; }

#Property Value

Type Default Description
Boolean true

true if the context menu is displayed when the dropdown window is right-clicked.

#Remarks

Use the ShowMenu property to control whether a context menu is invoked when the user clicks the editor’s dropdown window with the right mouse button.

The image editor context menu looks like the image below:

PictureEdit_ShowMenu.gif

If this property is true (the default behavior), the popup menu is displayed at the current mouse pointer location. Otherwise, the menu is not available.

Changing the property value at runtime raises the RepositoryItem.PropertiesChanged event.

Note: you can replace the default image editor’s context menu by a custom version. To do this, create and initialize a ContextMenu object and assign it to the editor’s RepositoryItem.ContextMenu property.

See Also