SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
My MVVM application can display more than 300 FastLineRenderableSeries on a SciChartSurface. SciChart handles the data and redisplays quite well. Thank you!
My users may mouse click on a series and quickly see the SelectedSeriesStyle change. The application needs to access the SeriesName of the SelectedSeries in the ViewModel for updates to other items in the ViewModel.
I read the topic/posts tagged SelectionSeriesModifier MVVM and the SeriesSource API. My attempts to utilize the CollectionChanged event of SelectedRenderableSeries (not in code-behind) have not had any success. It seems that I should do a OneWayToSource binding from SelectedRenderableSeries to an ObservableCollection<IChartSeriesViewModel> in the ViewModel. I would then like to use an MVVM Light EventToCommand bound to the CollectionChanged event.
Can you provide a demo or workaround on how to actually make this work?
Please, try subscribing to the IRenderableSeries.SelectionChanged event when you create IChartSeriesViewModels for SeriesSource. It is fired every time series gets selected, and the series can be accessed via the sender param.
Please, let us know if this way is convenient in your case.
Please login first to submit.