RepositoryItemPictureEdit.ShowMenu Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll


public bool ShowMenu { get; set; }
Public Property ShowMenu As Boolean

Property Value

Type Default Description


true, if the context menu is displayed when the editor is right-clicked; otherwise, false.


Use the ShowMenu property to control whether a picture editor displays a popup menu when the user right-clicks the editor:


The appearance of menus is controlled by a Menu Manager. For standalone PictureEdit controls, the Menu Manager is specified by the BaseEdit.MenuManager inherited property.

The availability of the zoom-related menu commands is specified by the RepositoryItemPictureEdit.ShowZoomSubMenu property. The Zoom to menu command is available if the Picture Editor's Menu Manager is set to a BarManager instance.

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

Note: you can replace the default picture editor's context menu with your own. To do this, create and initialize a ContextMenu object and assign it to the editor's RepositoryItem.ContextMenu property.

See Also