/// <summary>
/// AsCoreElement
/// </summary>
/// <param name="chart"></param>
/// <param name="source"></param>
/// <returns></returns>
public override AxisCore AsCoreElement(ChartCore chart, AxisOrientation source)
{
if (Model == null)
{
Model = new WindowAxisCore(this);
}
Model.ShowLabels = ShowLabels;
Model.Chart = chart;
Model.IsMerged = IsMerged;
Model.Labels = Labels;
Model.LabelFormatter = LabelFormatter;
Model.MaxValue = MaxValue;
Model.MinValue = MinValue;
Model.Title = Title;
Model.Position = Position;
Model.Separator = Separator.AsCoreElement(Model, source);
Model.DisableAnimations = DisableAnimations;
Model.Sections = Sections.Select(x => x.AsCoreElement(Model, source)).ToList();
((WindowAxisCore)Model).Windows = Windows.ToList();
return(Model);
}