Pre loader

Remove Crosshair Horizontal Line in View

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


I want to apply a Style that has removed the horizontal lines of the CursorModifier.

private void ExecuteLoadedCommand(StackGraphViewer parameter)
        if (root == null) root = parameter;

        root.sciChart.ViewportManager = _scrollManager;

        // Remove CrosshairsHorizLine
        root.sciChart.MouseMove += RemoveCrosshairsHorizLine;

    private void RemoveCrosshairsHorizLine(object sender, MouseEventArgs e)
        Line crosshairsHorizLine = root.sciChart.ModifierSurface.Children.OfType<Line>().FirstOrDefault(line => line.X1.CompareTo(0d) == 0);
        if (root.sciChart.ModifierSurface.Children.Contains(crosshairsHorizLine))
            root.sciChart.MouseMove -= RemoveCrosshairsHorizLine;

I want to solve it in View XAML, not ViewModel Code.

What should I do?

  • You must to post comments

Hi Park Seong Gyu,

Thanks for your inquiry.
As an option, you can create a Style for the CursorModifier Crosshair Lines and set the StrokeThickness property to 0 or Stroke property to Transparent.
Please take a look at the “Styling the CursorModifier Crosshair Lines” section of the following article for more info:

Please let me know if this helps.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.