SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

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!

0
0

Hi I just upgraded to 2.1.
I was wondering about the dash lined styling of a line from code behind. Anyway I add the code to change the StrokeDashArray it doesn’t seem to change my line at all. I may just not be using it right. An example line of code would be nice.
Thanks.

  • You must to post comments
0
0

Resolved.
For anyone else having this problem, for me it was just a matter of not understanding how to make the dashes different lengths.

line.StrokeDashArray = new[] { 3.0, 3.0 };

  • Andrew
    Hello there,Glad you got it solved :) Yes its the same API as the StrokeDashArray property in System.Windows.Controls.Shape, used to create dashed lines in WPF.Best regards, Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.