Bug in WPF 3.5.3700.30575 (no in 3.5.3498.27368!)
Posted: Tue Apr 06, 2010 6:00 am
In WPF TChart (3.5.3498.27368) I can use this code for Histogram series:
series.Delete(0, series.Count);
All works Ok. But in the latest 3.5.3700.30575 version when series.Count > 1 I get an exception "Index out of range"
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
в System.ThrowHelper.ThrowArgumentOutOfRangeException()
в System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
в Steema.TeeChart.WPF.Styles.ColorList.RemoveRange(Int32 index, Int32 count)
в Steema.TeeChart.WPF.Styles.Series.Delete(Int32 index, Int32 count, Boolean removeGap)
в Steema.TeeChart.WPF.Styles.Series.Delete(Int32 index, Int32 count)
What to do?
series.Delete(0, series.Count);
All works Ok. But in the latest 3.5.3700.30575 version when series.Count > 1 I get an exception "Index out of range"
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
в System.ThrowHelper.ThrowArgumentOutOfRangeException()
в System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
в Steema.TeeChart.WPF.Styles.ColorList.RemoveRange(Int32 index, Int32 count)
в Steema.TeeChart.WPF.Styles.Series.Delete(Int32 index, Int32 count, Boolean removeGap)
в Steema.TeeChart.WPF.Styles.Series.Delete(Int32 index, Int32 count)
What to do?