Any way to set the line thickness to a single-pixel wide line?
Thanks,
--jon
Any way to set the line thickness to a single-pixel wide line?
Thanks,
--jon
Hi Jon,
You can set the stroke thickness via the LineSeries.LineStyle property like:
<charts:LineSeries.LineStyle>
<Style TargetType="Shape">
<Setter Property="StrokeThickness" Value="5" />
</Style>
</charts:LineSeries.LineStyle>
Thanks!
But how to accomplish the same in C#?
--jon
Style style = new System.Windows.Style();
style.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 5.0));
lineSeries.LineStyle = style;
I get something like this. Seems to work. Thanks.
Please log in to a validated account to post comments.