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!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.