mobilecontrols-devexpress-dot-xamarinforms-dot-charts-dot-chartbaseview-de96240e.md
Occurs every time the chart changes its selected item(s).
Namespace : DevExpress.XamarinForms.Charts
Assembly : DevExpress.XamarinForms.Charts.dll
NuGet Package : DevExpress.XamarinForms.Charts
public event SelectionChangedEventHandler SelectionChanged
The SelectionChanged event's data class is SelectionChangedEventArgs. The following properties provide information specific to this event:
| Property |
|---|
| Action |
| DeselectedObjects |
| SelectedObjects |
In this example, a hint with preset options appears when a user taps a bubble.
Use the FilmData object collection as the data source for the chart to show the highest grossing films as bubbles.
Subscribe to the SelectionChanged event and enable hints for the chart.
In the event handler, use the DataSourceKey.DataObject property to access an object that corresponds with the selected bubble and cast it to the type of the data source object ( FilmData ). Call the ShowHint method to show a hint for the selected bubble and specify the tooltip text pattern.
See Also