Skip to main content

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

Chart3DControl.ShowCrosshair(Point) Method

Shows the Crosshair Cursor at the point with the specified coordinates relative to the 3D chart’s top-left corner.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void ShowCrosshair(
    Point screenPoint
)

#Parameters

Name Type Description
screenPoint Point

The Crosshair Cursor coordinates relative to the 3D chart’s top-left corner.

#Remarks

The following example shows the Crosshair Cursor on the MouseUp event:

private void Chart_MouseUp(object sender, MouseButtonEventArgs e) {
  Chart3DControl chart = (Chart3DControl)sender;
  Point point = e.GetPosition(chart);
  chart.ShowCrosshair(point);
}

You can use the HideCrosshair method to hide the Crosshair Cursor.

See Also