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

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.