Is this property Bindable? I have a Barseries and a Lineseries, the LineSeries should only apply to the last data series, if i put in the right index it works, but with binding no getter gets called.
1 Answer, 1 is accepted
answered on 08 Jul 2016, 09:52 AM
The chart series descriptor doesn't have a data context and its properties cannot be bind. Or at least they won't know from where to get their bound properties. In short, no, the CollectionIndex property won't work with binding because it doesn't have a binding source.
In order to achieve your requirement you can use the SeriesProvider SeriesDescriptorSelector and apply the proper descriptors to the series. Another approach could be to add a single abstract ChartSeriesDescriptor and subscribe for the SeriesProvider's SeriesCreated event, where you can get the CollectionIndex property from the view model and based on it, manually create the corresponding series.