HierarchicalChartControlBase.SelectionChanged Event
Occurs when items are added to or removed from the SelectedItems collection.
Namespace: DevExpress.Xpf.TreeMap
Assembly: DevExpress.Xpf.TreeMap.v24.2.dll
NuGet Package: DevExpress.Wpf.TreeMap
Declaration
Event Data
The SelectionChanged event's data class is TreeMapSelectionChangedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Selection | Returns the list of selected items. |
Remarks
The following code uses the TreeMapSelectionChangedEventArgs.Selection property to get a selected item:
private void sunburst_SelectionChanged(object sender, DevExpress.Xpf.TreeMap.TreeMapSelectionChangedEventArgs e) {
MyModel selectedItem = (MyModel)e.Selection[0];
//Add your logic here.
}
See Also