public List <AxisCore> MapXAxes(ChartCore chart) { if (Windows.ApplicationModel.DesignMode.DesignModeEnabled && AxisX == null) { AxisX = DefaultAxes.DefaultAxis; } if (AxisX.Count == 0) { AxisX.AddRange(DefaultAxes.CleanAxis); } return(AxisX.Select(x => { if (x.Parent == null) { if (x.Separator != null) { chart.View.AddToView(x.Separator); } chart.View.AddToView(x); x.AxisOrientation = AxisOrientation.X; } return x.AsCoreElement(Model, AxisOrientation.X); }).ToList()); }
public List <AxisCore> MapXAxes(ChartCore chart) { if (AxisX.Count == 0) { AxisX.AddRange(DefaultAxes.CleanAxis); } return(AxisX.Select(x => { if (x.Parent == null) { chart.View.AddToView(x); } return x.AsCoreElement(Model, AxisTags.X); }).ToList()); }
public List <AxisCore> MapXAxes(ChartCore chart) { if (DesignerProperties.GetIsInDesignMode(this) && AxisX == null) { AxisX = DefaultAxes.DefaultAxis; } if (AxisX.Count == 0) { AxisX.AddRange(DefaultAxes.CleanAxis); } return(AxisX.Select(x => { if (x.Parent == null) { chart.View.AddToView(x); if (x.Separator != null) { chart.View.AddToView(x.Separator); } } return x.AsCoreElement(Model, AxisOrientation.X); }).ToList()); }