Pre loader

Styling dash lined

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


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 Burnett-Thompson
    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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies