Pre loader

MVVM API vs direct access

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hello support team,

We are currently starting a complete redesign of our SciChart implementation from V3.x to V5.x. In V5.x the MVVM pattern is now supported and we would like to use this.
Our main focus is on the performance of the SciChart component. Now the question arises whether the use of the MVVM API is questionable for exactly this reason (performance).
Does it make a big difference whether I address the series directly or via the MVVM API?
Thank you very much for your support!

Version
5
  • You must to post comments
0
0

Should be none at all (no performance impact).

When you create a RenderableSeriesViewModel derived type in your viewmodel, we instantiate the series and add it to the chart. The data-binding is done as before and any changes to DataSeries in the viewmodel are reflected on the chart.

You might (untested) run into a performance problem if you are doing something unusual like instantiating hundreds or thousands of series, but there is nothing we are aware of that will cause any slowdown with MVVM.

Have a look through our MVVM tutorials for guidance how to use the new APIs. Any questions just ask!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.