Hello
I am using telerik chart which has dotted style to one of the line and rest has solid(default) this works fine when it loads.
but when i scroll dotted style get overwrite with solid. please help me in this. i am using following code snippet for styling to dotted line.
I am using telerik chart which has dotted style to one of the line and rest has solid(default) this works fine when it loads.
but when i scroll dotted style get overwrite with solid. please help me in this. i am using following code snippet for styling to dotted line.
Style pathStyle1 = new Style(typeof(System.Windows.Shapes.Path));
pathStyle1.Setters.Add(new Setter(System.Windows.Shapes.Shape.StrokeDashArrayProperty, "2"));
pathStyle1.Setters.Add(new Setter(System.Windows.Shapes.Shape.StrokeProperty, new SolidColorBrush(Colors.Cyan)));
pathStyle1.Setters.Add(new Setter(System.Windows.Shapes.Shape.StrokeThicknessProperty, 6));
Style lineStyle1 = new Style(typeof(Telerik.Windows.Controls.Charting.SelfDrawingSeries));
lineStyle1.Setters.Add(new Setter(SelfDrawingSeries.BorderLineStyleProperty, pathStyle1));
strColor = "#FFD29988";
lineDefinition.Appearance.Stroke = (Brush)ConvertColor(strColor);
lineDefinition.Appearance.PointMark.Stroke = (Brush)ConvertColor(strColor);
lineDefinition.SeriesStyle = lineStyle1;
Thanks
Sunita