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
- Alexander Volkov asked 7 years ago
- You must login to post comments
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
- Yuriy Zadereckiy answered 7 years ago
-
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 login to post comments
Please login first to submit.