windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-77b29da1.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool ShowMenu { get; set; }
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Property ShowMenu As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
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
RepositoryItemPictureEdit Class