Hello,
I have a charting application that needs to run in two modes. In the first main mode we will generate xamDataCharts which can get exported as images. That path works. However, I want to also run the application from the command line and have it generate the same charts. My plan is to have the code generate XamDataCharts and then export them. However when I tried that I got an empty image.
I am guessing that rendering the chart, or maybe initializing it in the xaml is performing extra steps that I am missing. Do you have any advice on how to properly initiate the charts so that they will form the same images as if they were in xaml?
Attached is a heavily simplified example.
Thanks,
Mike
Hello Mike,
Thank you for your post. I have been looking into it and the sample you have attached and I modified it, so now it works as you want. Basically I called the Measure and Arrange methods of the XamDataChart before the UpdateLayout method, so the chart could be initialized correctly. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thanks for your help. Your solution is what I needed.