// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) 2014 OxyPlot contributors
//
//
// This is a Avalonia wrapper of OxyPlot.BarSeries<T>.
//
// --------------------------------------------------------------------------------------------------------------------
namespace OxyPlot.Avalonia
{
///
/// This is a Avalonia wrapper of OxyPlot.BarSeries<T>.
///
/// The type of the items.
public class BarSeriesBase : BarSeriesBase
where T : OxyPlot.Series.BarItemBase, new()
{
///
/// Synchronizes the properties.
///
/// The series.
protected override void SynchronizeProperties(OxyPlot.Series.Series series)
{
base.SynchronizeProperties(series);
if (Items != null)
{
var s = (OxyPlot.Series.BarSeriesBase)series;
s.Items.Clear();
foreach (T item in Items)
{
s.Items.Add(item);
}
}
}
}
}