MapControl.SelectionChanging Event

Occurs before a map item is selected, enabling a handler to cancel the map item selection change.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v21.2.dll


public event MapItemSelectionChangingEventHandler SelectionChanging

Event Data

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

Property Description
Cancel Gets or sets whether the map item selection should be canceled.
Selection Gets the list of selected objects on a map.


This event fires before a selection is changed. It can be handled to customize the map item selection. The event’s Cancel parameter allows you to prevent the map item from being selected.

See Also