SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
That appears to be the default behavior of WPF lines. To change it, you should set SnapsToDevicePixels to “True” and RenderOptions.EdgeMode to “Aliased” on a line. For Cursor, you could do this in a style using Andrew’s suggestion above:
<Style TargetType="Line"> <Setter Property="StrokeThickness" Value="1" /> <Setter Property="SnapsToDevicePixels" Value="True" /> <Setter Property="RenderOptions.EdgeMode" Value="Aliased" /> </Style>
Hope it helps!
The following properties are available for styling the CursorModifier:
Changing the CursorModifier Line Style
If you simply want to change the line style, try this code:
<CursorModifier> <CursorModifier.LineOverlayStyle> <Style TargetType="Line"> <!-- To set the stroke --> <Setter Property="Stroke" Value="Red"/> <!-- To set the StrokeThickness --> <Setter Property="StrokeThickness" Value="2"/> <!-- To set a dashed line, else leave this setter out for default --> <Setter Property="StrokeDashArray" Value="2 2"/> </Style </CursorModifier.LineOverlayStyle> </CursorModifier>
Hope this helps!
Please login first to submit.