BaseEdit.ContextMenuStrip Property

Gets or sets a ContextMenuStrip associated with the current control

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public override ContextMenuStrip ContextMenuStrip { get; set; }

Property Value

Type Description

A ContextMenuStrip object that represents a shortcut menu associated with the current control.


Custom menus can be assigned to editors using the ContextMenuStrip or RepositoryItem.ContextMenuStrip property.

We suggest you assign custom menus to editors using the RepositoryItem.ContextMenuStrip property which can be accessed via the editor’s BaseEdit.Properties object. The menu assigned to the RepositoryItem.ContextMenuStrip has a higher priority.

See Also