Hellow there,
I have this code for vertical lines of a graph binding to VM with INotifyPropertyChanged implemented.
<s:VerticalSlicseModifier.VerticalLines>
<s:VerticalLineAnnotation X1="{Binding IndexFirstBeep, UpdateSourceTrigger=PropertyChanged}" >
</s:VerticalLineAnnotation>
<s:VerticalLineAnnotation X1="{Binding IndexSecondBeep, UpdateSourceTrigger=PropertyChanged}" >
</s:VerticalLineAnnotation>
</s:VerticalSliceModifier.VerticalLines>
At first I can see both vertical lines but after switching to another tab item and coming back, one (sometimes both) of the vertical lines disappears. If I double click the graph it reappears. This happens to almost all of my graphs. Here is how I set up my VM
private int indexFirstBeep = 6;
public int IndexFirstBeep
{
get
{
return indexFirstBeep;
}
set
{
indexFirstBeep = value;
OnPropertyChanged("IndexFirstBeep");
}
}
I have also noticed it happening to the renderables series of some of my graphs after switching their visibility.
Am on v4.0.30319
Please help.
- Kilosa Magali asked 8 years ago
- last edited 8 years ago
- You must login to post comments
Hi there,
Thank you for writing to us. I’ve logged this issue, please let us try to reproduce it on our side.
For now, you could call SciChartSurface.ZoomExtents() or SciChartSurface.InvalidateElement() method in a SelectionChanged or Loaded event handler for TabControl. This will trigger redraw of a SciChartSurface.
Hope this helps,
Best regards,
Yuriy
- Yuriy Zadereckiy answered 8 years ago
-
Thanks Yuriy, works but still waiting for the permanent solution though cause with this I really have alot of InvalidateElement() to add
-
Hi Kilosa, we’ve been a little busy recently, but we will get back to you after investigation.
-
Hi Kilosa, Please try out the latest build #v4.0.6.8521. This issue is fixed there. You can get it through our NuGet feed: http://support.scichart.com/index.php?/Knowledgebase/Article/View/17232/37/getting-nightly-builds-with-nuget Best regards, Andrii
-
Thanks Andrii, all good, problem solved after updating to #v4.0.6.8521
- You must login to post comments
Please login first to submit.