I am trying to WindowsFormsHost to embed a Winforms chart in a WPF application. Just wondering if anyone has already tried that and has any experience with that.
Thanks.
I haven't tried this myself, but please let us know if you have any problems.
The way I did this is by using WinFormsHost. I created a WPF user control, added a WindowsFormsHost to it and added the UltraChart on top of that. All this works fine.
However, in my application I need to have 100s of instances of this control at one time. Launching this is taking way too long. For 100 instances, the launch time is 15 seconds. No, I am wondering if there is any way to work around this.
I would really appreciate any suggestions.
Maybe create a WinForms user control with the 100 charts in it, so you only have to have one instance of the WindowsFormsHost?
We considered that. The problem with that approach is there is no logical way of mapping each of these charts to the cell that contains it. So, that becomes a huge mess in itself.
We were forced to go with Winforms, because the Infragistics WPF charts do not meet our requirements. Now, we need to figure out a way to work with this.
if you are willing to give up the interaction features like tooltips, you could just have one chart in memory and save it as an image repeatedly. that would greatly improve performance.