This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When I set the LineSeries.LineStyle property to a style that includes setting the StrokeDashArray I find that usually I just get a solid line. Snoop reveals that while my line style does get set on the displayed Path, the StrokeDashArray is set locally to null, so the setter from the style is ignored. A quick look at the LineAreaSeriesBase.UpdatePath shows that path.StrokeDashArray can indeed get set to null. I verified that instead setting to the DependencyProperty.UnsetValue solves the problem. I did learn about the DashArray property that I can use instead as a workaround, though really relying on the style would be preferable. Thanks Peter |
|
|
Hello Peter The Chart control was originally built in Silverlight, which seemed to have an issue with setting the StrokeDashArray within a line style. It would work fine the first render, but all subsequent renders would create a solid line and seem to ignore the StrokeDashArray setter. And so, the DashArray property on LineAreaSeriesBase was created. I ended up forgetting to check if this was still required when porting the Chart control to WPF. It seems that WPF does not have this problem, but we're stuck with the property until we decide to remove it in a major version release. Thanks for the suggestion about setting it to UnsetValue, I've made this change for the next nightly build. -Jason Fauchelle |
|