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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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.