IndexOutOfRangeException when using Bands
Posted: Thu Aug 28, 2014 8:29 am
If I add a band to ViewXY.Bands and then call SetSubNodeOwners on the Band, it throws an IndexOutOfRangeException when the axis with the assigned axis index doesn't exist yet.
This can easily be prevented by creating the axes before the bands, BUT when working with the Visual Studio designer the generated XAML can define the bands before the axes. Other SeriesBaseXY subtypes don't suffer from this problem, so I would like to suggest that Bands also take into account that an axis might not exist yet.
Thanks,
Joost
This can easily be prevented by creating the axes before the bands, BUT when working with the Visual Studio designer the generated XAML can define the bands before the axes. Other SeriesBaseXY subtypes don't suffer from this problem, so I would like to suggest that Bands also take into account that an axis might not exist yet.
Thanks,
Joost