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.ModifierSurface.Children.Remove(crosshairsHorizLine);
root.sciChart.MouseMove -= RemoveCrosshairsHorizLine;
}
}
I want to solve it in View XAML, not ViewModel Code.
What should I do?
- Park Seong Gyu asked 3 years ago
- You must login 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:
https://www.scichart.com/documentation/win/current/webframe.html#CursorModifier.html
Please let me know if this helps.
- Oleksandr Shvets answered 3 years ago
- You must login to post comments
Please login first to submit.