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.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(true)]
public bool ShowMenu { get; set; }
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Property ShowMenu As Boolean

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