This question is locked. New answers and comments are not allowed.
I can currently set a line series to draw dashed with the following code:
The problem is, I want the color of the line to be set by the default theme -- not by
definition.AxisName = "PageViews";Style pathStyle1 = new Style( typeof( System.Windows.Shapes.Path ) );pathStyle1.Setters.Add( new Setter( Shape.StrokeDashArrayProperty, "1" ) );pathStyle1.Setters.Add( new Setter( Shape.StrokeProperty, new SolidColorBrush( Colors.Black ) ) );pathStyle1.Setters.Add( new Setter( Shape.StrokeThicknessProperty, 3 ) );Style lineStyle1 = new Style( typeof( Telerik.Windows.Controls.Charting.SelfDrawingSeries ) );lineStyle1.Setters.Add( new Setter( SelfDrawingSeries.BorderLineStyleProperty, pathStyle1 ) );definition.SeriesStyle = lineStyle1;The problem is, I want the color of the line to be set by the default theme -- not by
Setter( Shape.StrokeProperty, new SolidColorBrush( Colors.Black ))
Is this possible?