Hi,
I would like to programmatically check or uncheck all the series with a
shortcut for instance.
My user want to quickly hide or show all series.
I tried the code below with the visibility which works on the series but the check box in the legend is not updated.
checkAll = !checkAll;
foreach (FastLineSeries cs in this.lineChart.Series)
{
cs.Visibility = checkAll ? Visibility.Visible : Visibility.Hidden;
}
I want the same behavior as click on the check box of the legend.