private static string GetLegendLabel(ILLegend source, ILPanel panel) { if (panel.Scene.Find<ILLegend>().Count() == 1) return ILLegend.LegendTag; return BuildDefaultName(panel, source, ILLegend.LegendTag); }
private void ReLegend() { Space.Children.Remove(Legend); Space.Children.Add(Legend = new ILLegend()); }
public ShapesPlot() { Space.Children.Add(Legend = new ILLegend()); }
public ILLegendWrapper(ILLegend source, ILPanelEditor editor, string path, string name = null, string label = null) : base(source, editor, path, BuildName(name, editor.Panel, source, ILLegend.LegendTag), String.IsNullOrEmpty(label) ? GetLegendLabel(source, editor.Panel) : label) { this.source = source; }