Skip to main content

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

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