/// <summary> /// Synchronizes the properties. /// </summary> /// <param name="series">The series.</param> protected override void SynchronizeProperties(OxyPlot.Series.Series series) { base.SynchronizeProperties(series); var s = (OxyPlot.Series.LineSeries)series; s.Color = Color.ToOxyColor(); s.StrokeThickness = StrokeThickness; s.LineStyle = LineStyle; s.MarkerResolution = MarkerResolution; s.MarkerSize = MarkerSize; s.MarkerStroke = MarkerStroke.ToOxyColor(); s.MarkerType = MarkerType; s.MarkerStrokeThickness = MarkerStrokeThickness; s.Dashes = Dashes; s.LineJoin = LineJoin; s.MarkerFill = MarkerFill.ToOxyColor(); s.MarkerOutline = (MarkerOutline ?? Enumerable.Empty <Point>()).Select(point => point.ToScreenPoint()).ToArray(); s.MinimumSegmentLength = MinimumSegmentLength; s.LabelFormatString = LabelFormatString; s.LabelMargin = LabelMargin; s.LineLegendPosition = LineLegendPosition; s.BrokenLineColor = BrokenLineColor.ToOxyColor(); s.BrokenLineStyle = BrokenLineStyle; s.BrokenLineThickness = BrokenLineThickness; s.Decimator = Decimator; s.InterpolationAlgorithm = this.InterpolationAlgorithm; }
/// <summary> /// Synchronizes the properties. /// </summary> /// <param name="series">The series.</param> protected override void SynchronizeProperties(OxyPlot.Series.Series series) { base.SynchronizeProperties(series); var s = (OxyPlot.Series.ScatterSeries <T>)series; s.MarkerFill = MarkerFill.ToOxyColor(); s.MarkerStroke = MarkerStroke.ToOxyColor(); s.MarkerStrokeThickness = MarkerStrokeThickness; s.MarkerType = MarkerType; s.MarkerSize = MarkerSize; s.DataFieldX = DataFieldX; s.DataFieldY = DataFieldY; s.DataFieldSize = DataFieldSize; s.DataFieldValue = DataFieldValue; s.DataFieldTag = DataFieldTag; s.ItemsSource = Items; s.BinSize = BinSize; s.Mapping = Mapping; s.MarkerOutline = MarkerOutline; s.ColorAxisKey = ColorAxisKey; }