Skip to main content

RepositoryItem.ContextMenu Property

Gets or sets the context menu for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public virtual ContextMenu ContextMenu { get; set; }

Property Value

Type Default Description
ContextMenu null

A ContextMenu object representing the context menu for the editor.


Use this property to bind a context menu to the editor. Note: some editors have their own context menus provided by default. For instance, editors with text boxes provide a context menu that supports selections and Clipboard related actions etc. If a context menu is assigned to the ContextMenu property, it overrides the default context menu.

This property value is synchronized with the editor’s BaseEdit.ContextMenu property.

Changing the ContextMenu value raises the RepositoryItem.PropertiesChanged event.

Note: the context menu is not invoked if the editor is disabled (the RepositoryItem.Enabled property is set to false).

See Also