Skip to main content

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.1.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