Pre loader

FAQ: How to call SciChartSurface.SuspendUpdates() in a ViewModel

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

Answered Closed
1
1

We keep getting asked What’s the best practice way to suspend the SciChartSurface in a multi-pane stock chart demo.

We have multiple ways of doing this.

By far the most effective and thread-safe way to do this is to call SuspendUpdates directly on the SciChartSurface. But how to do this in a ViewModel?

  • You must to post comments
Best Answer
1
0

I am considering applying server-side licensing for my javerScript application.

In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)

However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)

I wonder if there is a sample code implemented in C++ for server-side licensing.

Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?

Images
  • Andrew Chin
    Hi Andrew, Is there any way possible to bind SciChart instance through DI to ViewModel. I’m kind of stuck in between DI(Dagger2) and SciChart objects in VM through ISuspendable. With data-binding in Fragment & VM with constructor argument of ISuspendable is not possible ahead of time. Please suggest. Regards, Praween
  • Andrew Burnett-Thompson
    Hi Andrew, the above post is for WPF not android or Xamarin — Do you want to open a question in our Android or iOS forum for our tech team to take a look at? Click ‘ask’ at https://www.scichart.com/questions/
  • Stefan Rado
    Wouldn’t it be easier to just have an attached property that can be bound to a view model which suspends updates if set to true? I know this doesn’t give the flexibility of having multiple disposable suspend locks, but that could be handled internally in the view model if really needed.
  • You must to post comments
Showing 1 result

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies