Skip to main content

MapControl.MapItemClick Event

Fires when a map item of the Map Control is clicked.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v22.1.dll


public event MapItemClickEventHandler MapItemClick

Event Data

The MapItemClick event's data class is MapItemClickEventArgs. The following properties provide information specific to this event:

Property Description
Handled Gets or sets a value specifying whether an event has been handled.
Item Gets a map item to be represented in the map control. Inherited from MapItemEventArgs.
MouseArgs Returns data for the MouseUp, MouseDown, and MouseMove events.


The MapItemClick event occurs when a map item is clicked on a map.


The following code invokes a PopupMenu when a user right-clicks a map path:

mapControl1.MapItemClick += OnMapItemClick;
private void OnMapItemClick(object sender, MapItemClickEventArgs e) {
   if (e.MouseArgs.Button == MouseButtons.Right && e.Item is MapPath) {
See Also