Back to Devexpress

RepositoryItemPictureEdit.ShowMenu Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-77b29da1.md

latest3.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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:

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

ShowZoomSubMenu

ShowCameraMenuItem

RepositoryItemPictureEdit Class

RepositoryItemPictureEdit Members

DevExpress.XtraEditors.Repository Namespace