Pre loader

Vertical line annotations disappearing after tab item switch

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

1
0

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.

  • You must to post comments
1
0

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

  • 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