Dynamic number of LineSeries in WPF Charting using MVVM

Answered Dynamic number of LineSeries in WPF Charting using MVVM

  • segunda-feira, 16 de abril de 2012 14:54
     
     

    I have gone through lot of sample projects on the net which claim to follow the MVVM pattern and have dynamic number of LineSeries (or) Series objects in a Chart,but rather each one of them just create a wrapper or inherit the Chart class and somewhere call the chart.Series.Add() function to add the series.

    I was searching for an example where we have ObservableCollection<ObservableCollection<int,int>> and I bind this List to the Chart.Whenver I add or remove any ObservableCollection from the outer list a Series automatically should get populated.

    Thanks in Advance.

Todas as Respostas