Style style = new Style(typeof(LineSeries)); var color = (Color)ColorConverter.ConvertFromString(linecontrolWindow.BatchTimeLine); style.Setters.Add(new Setter(LineSeries.DataPointStyleProperty, color)); Series1.Style = style;
It looks like the type of the DataPointStyle property is Style and, you try to set to it a value of type Color...
DataPointStyle
Style
Color
Background
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)