Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
XamDataChart Does Not Resize/Redraw Properly inside XamTile
posted

In our application, we have some views containing XamDataCharts inside XamTiles controlled by a XamTileManager on a page inside a XamTabControl. The XamTiles cannot be custom resized by the user, but they can be maximized or restored to preset sizes if the user clicks the maximize button on the tile.

Sometimes when the user maximizes or restores a tile, the XamDataCharts do not redraw properly and the application can become sluggish after this happens. Switching to a different tab page and back usually gets the charts to redraw properly. I cannot demonstrate this in a sandbox project because our code is too complex, but I have included a screenshot showing an example of how one of these graphs looks before maximizing and how the same graph looks after maximizing and restoring.

What can we do to get the XamDataCharts to redraw properly after the tiles have been resized? Is there any event we can handle that tells us when the tiles have changed size? And, if so, is there any method we can call that will force the XamDataCharts to redraw properly after  a resize? We tried to handle the Resize event, but it did not get called in most instances.

Thank you.