Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    HierarchicalChartControlBase.SelectionChanged Event

    Occurs when items are added to or removed from the SelectedItems collection.

    Namespace: DevExpress.Xpf.TreeMap

    Assembly: DevExpress.Xpf.TreeMap.v25.1.dll

    NuGet Package: DevExpress.Wpf.TreeMap

    #Declaration

    public event TreeMapSelectionChangedEventHandler SelectionChanged

    #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