SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.
I have more than one chart in my UI, and they are on separate tabs. As soon as I call .ExportToBitmapSource() for one of the charts that is not shown (it’s tab is not selected) an exception is thrown… UIElement.Measure(availableSize) cannot be called with NaN size. Is there a way around this?
I saw yesterday in the documentation that it appears the product doesn’t support this. That would be a big bummer.
In WPF, when a tab is hidden, the View is actually garbage collected and destroyed – it no longer exists! So yes, we don’t support this…
SciChart however does have some mechanisms to export an image while off-screen. Again WPF doesn’t support this, so we had to do a high level of hacks and magic to make it happen. You can learn about the API to export off-screen here.
Export to BitmapSource at Specific Size
SciChart supports exporting to BitmapSource (in-memory bitmap) at a specific resolution and size….
There are also a number of caveats for exporting off-screen. We have to take a clone or copy of the entire chart in memory to achieve it. Sometimes things like styling is lost. You can read about caveats here.
Please login first to submit.