Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItem.ContextMenu Property

Gets or sets the context menu for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(null)]
[DXCategory("Behavior")]
public virtual ContextMenu ContextMenu { get; set; }

#Property Value

Type Default Description
ContextMenu null

A ContextMenu object representing the context menu for the editor.

#Remarks

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.

See Also