SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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.

Answered
1
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

  • Daniel Moreschini
    I have this same issue. Can you explain exactly type of timer implementation might help? I’ve tried to add a few sleep statements but it only works if the char/tab is visible. Thank you!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.