Style dataPointStyle = new System.Windows.Style();
dataPointStyle.TargetType = typeof(System.Windows.Controls.Control);
Style LegendStyle = new System.Windows.Style();
LegendStyle.TargetType = typeof(System.Windows.Controls.Control);
Setter setterDataRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
Setter setterLegendRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
dataPointStyle.Setters.Add(setterDataRed);
LegendStyle.Setters.Add(setterLegendRed);
lineSeries11.DataPointStyle = dataPointStyle;
lineSeries11.LegendItemStyle = LegendStyle;
dataPointStyle.TargetType = typeof(System.Windows.Controls.Control);
Style LegendStyle = new System.Windows.Style();
LegendStyle.TargetType = typeof(System.Windows.Controls.Control);
Setter setterDataRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
Setter setterLegendRed = new Setter(System.Windows.Controls.Control.BackgroundProperty, new SolidColorBrush(Colors.Red));
dataPointStyle.Setters.Add(setterDataRed);
LegendStyle.Setters.Add(setterLegendRed);
lineSeries11.DataPointStyle = dataPointStyle;
lineSeries11.LegendItemStyle = LegendStyle;