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

MapControl.SelectionChanged Event

Fires after the selection has been changed.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public event MapItemSelectionChangedEventHandler SelectionChanged

#Event Data

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

Property Description
Selection Gets the list of selected objects on a map.

#Remarks

Use the SelectionChanged event handler to perform specific actions each time the end user selects the map control.

MapItemSelectionChangedEventArgs.Selection stores user data objects that are used to create map items. For example, Selection contains the MapItem descendants if you use file data adapters (KmlFileDataAdapter, ShapefileDataAdapter or SvgFileDataAdapter). Selection stores the MapItem.Tag property values if the Map Control is bound to a data source.

See Also