Pre loader

Getting a custom modifier to render

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

Hi!

I am using a custom modifier written guided by the example in http://http://www.scichart.com/extending-scichart-with-text-annotations-and-screenshots/

However, I am running mvvm and have an Annotations dependency property in my modifier.

However, when the Annotations property in my viewmodel is changed, the modifier does not redraw itself. I have to do something else, like switch over to another tab and then back again for the new annotations to appear.

Any ideas to how I can get the modifier to draw the new annotations?

  • You must to post comments
0
0

Hello Lisbeth,

Is the Annotations DependencyPropertyChanged callback firing? If so then it sounds like your binding is wired up ok, you just need to trigger a redraw. In a Chart Modifier you can do this by calling

base.ParentSurface.InvalidateElement();

This will cause the chart to redraw itself (All series and annotations). Please let me know if this helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

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

Start TrialCase Studies