SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

1
0

Hello,

I am using mvvm and binding multiple fastline dataseries to the renderable series property which works fine. However, I would like to create a viewmodel for the series and bind things like series color, seriessource, name to properties in my viewmodel. Typically with collections I would use the itemscontainerstyle, is there an equivalent to this with the renderable series? If not, do you have any recommendations on a way to do something like this?

Thanks

  • You must to post comments
1
0

Hi there,

We don’t have an ItemsContainerStyle property to do this but I understand what you mean. We have a pretty good write-up at the FAQ Switching Chart Types (RenderableSeries) at Runtime on the different methods available in SciChart. Take a look at the Attached Behaviour method – this lets you bind to anything and create anything. For instance, if you had a set of ViewModels to define chart type, colours and data, you could easily create the RenderableSeries on demand in your behaviour.

If you do make some progress, feel free to post it as an answer as other people will no doubt be interested!

Best regards,
Andrew

  • You must to post comments
0
0

Thanks for the info,

I ended up taking a different direction and just basically using the FastLineRenderableSeries as my viewmodel object and modifying it at runtime, which works great. I did have to inherit this class to add some of my own functionality.

Jason

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.