LiveCharts.Wpf.Axis.AsCoreElement C# (CSharp) Method

AsCoreElement() public method

Ases the core element.
public AsCoreElement ( ChartCore chart, AxisOrientation source ) : AxisCore
chart LiveCharts.Charts.ChartCore The chart.
source AxisOrientation The source.
return AxisCore
        public AxisCore AsCoreElement(ChartCore chart, AxisOrientation source)
        {
            if (Model == null) Model = new AxisCore(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();

            return Model;
        }