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

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 editor is right-clicked; otherwise, false.

Remarks

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

PictureEdit_Class.gif

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