/// <summary> /// Show or hide the legend based on current visibility setting /// </summary> internal void SetLegendVisibility() { bool visible = !ChartView.MainViewPanelMaximized && ChartView.ShowLegend; // change value, causes redraw if (visible) // setup to be sure properly configured { ChartView.SetupLegend(); ChartControl.Legend.Visibility = DefaultBoolean.True; } else { ChartControl.Legend.Visibility = DefaultBoolean.False; } //ChartControl.Legend.Visible = visible; DevExpress 15.2.7 Upgrade return; }