I need to synchronize the charts with external data. I’m using RenderSurface.ActualWidth and RenderSurface.ActualHeight to do it. But initial values (after chart creation) are larger than real. It becomes correct only after the window resizing. This behaviour is demonstrated in the attached project and video files.
Is it possible to make it right from the start or make a force resize?
Thanks for your question and sample project.
Unfortunately, I couldn’t reproduce this issue on our side.
This may happen when DPI is not 96. Please take a look at this article for more info:
Unfortunately, we cannot be more helpful without being able to reproduce the issue.
Oleksandr, have you tried to do the same actions with the attached project as in my video? According to the article XamlRenderSurface is available only in the enterprise version. I checked my display dpi, it is 96. I tried to set the same resolution as in the article, but the result is the same.
If ActualWidth, ActualHeight of SciChartSurface differ from the real pixel widths and heights, hot to get real values?
Again, window resize gives the correct result. Is it possible to force resize on the chart creation? It is a critical issue for the project.
Please login first to submit.