Pre loader

ZoomExtents from another tab of TabControl

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

Answered
2
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.