SunburstControl.CalcHitInfo(Point) Method
Returns information about the specified element in the SunburstControl.
Namespace: DevExpress.Xpf.TreeMap
Assembly: DevExpress.Xpf.TreeMap.v22.2.dll
NuGet Package: DevExpress.Wpf.TreeMap
Declaration
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