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


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.

  • You must to post comments

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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more