Skip to main content
All docs
V24.2

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

SunburstControl.CalcHitInfo(Point) Method

Returns information about the specified element in the SunburstControl.

Namespace: DevExpress.Xpf.TreeMap

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

NuGet Package: DevExpress.Wpf.TreeMap

#Declaration

public SunburstHitInfo CalcHitInfo(
    Point point
)

#Parameters

Name Type Description
point Point

Test point coordinates relative to the Sunburst chart’s top-left corner.

#Returns

Type Description
SunburstHitInfo

Contains information about the Sunburst chart’s elements at the test point.

#Remarks

The following code invokes a message box when a user double-clicks a Sunburst sector:

<dxtm:SunburstControl x:Name="sunburstControl"
                      MouseDoubleClick="SunburstControl_MouseDoubleClick">
                      <!--...-->
</dxtm:SunburstControl>
private void SunburstControl_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) {
    SunburstHitInfo hitInfo = sunburstControl.CalcHitInfo(e.GetPosition(sunburstControl));
    if (hitInfo != null) {
        MessageBox.Show($"Sector value: {hitInfo.ItemInfo.Value}");
    }
}
See Also