Dashes property of LineSeries has no effect on the line style in the latest snapshot

Oystein Bjorke fa 10 anys 0
This discussion was imported from CodePlex

johnkesselman wrote at 2014-03-18 19:50:

Tried to modify one of the examples to see the effect of the Dashes property like so:
       [Example("#10076: Dashed line test")]
        public static PlotModel DashedLineTest()
        {
            var model = new PlotModel("Dashed line test");

            for (int y = 1; y <= 10; y++)
            {
                var line = new LineSeries
                {
                    StrokeThickness = y,
                    Dashes = new double[] { 1, 2, 3}
                };
                for (int i = 0; i < 20; i++)
                {
                    line.Points.Add(new DataPoint(i + 1, y));
                }

                model.Series.Add(line);
            }

            return model;
        }
No effect. The line was still solid. Am I doing something wrong?

objo wrote at 2014-03-19 08:15:

This is a bug, thanks for the report!
https://oxyplot.codeplex.com/workitem/10164

objo wrote at 2014-03-19 08:22:

Should be fixed now.