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

Answered
0
0

Hello, SciChart team,
i’m trying to ZoomExtents a chart, which is in in one tab of TabControl, from another tab, but it doesn’t change visible ranges.

i wanted to attach an example project, but every time i try i get “Forbidden” popup & nothing attaches (file size is 900 KB, format – “.zip”)
here’s link for an Example
please help with this not so large but unpleasant issue,
thanks heaps,
Alexander

Version
3.5
  • You must to post comments
Great Answer
0
0

Hi Alexander,

I believe this issue is caused by TabControl, which utilizes virtualization of its content by default. When a tab with a chart on it gets invisible, the SciChartSurface gets unloaded by the TabControl and becomes inactive. When you switch tabs again on button click, the SciChartSurface isn’t loaded at that moment so it cannot perform ZoomExtents.

I think if you delay the call to ZoomExtents using Timer it will work just fine.

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.