Page 1 of 1

TeeChart2011 and WPF

Posted: Sun Dec 04, 2011 9:38 am
by 6920463
Hi,

i am researching the possibly to migrate our application to WPF.

Is there a different teeChart control for WPF or is that the same control? should i make some code changes in order to migrate the teeChart control to WPF? where can i get more information regarding the teeChart WPF support?

Re: TeeChart2011 and WPF

Posted: Mon Dec 05, 2011 9:28 am
by narcis
Hi MShefi,

TeeChart for WPF is a separate assembly: TeeChart.WPF.dll but has the same architecture and functionality than TeeChart.dll, just some syntactic differences with namespaces which add *.WPF.*. I recommend you to have a look at the WPF demo sources shipped with the TeeChart installation.

Re: TeeChart2011 and WPF

Posted: Tue Dec 13, 2011 7:35 am
by 6920463
Hi,

let my clarify myself, I'm trying to migrate from teechart to teechart.WPF.
first, I'm checking the opportunity to stay in WinForm application and embed teechart.WPF in it.

there are some differences:

1. Different Types - Some double variables become int, etc.
2. All microsoft properties(like location, size, etc.) and functions(like SuspendLayout and SendToBack) are not available and there is a need to use ElementHost.
3. Colors, Points, Images, Fonts - Different objects(for example - System.Windows.Media.Color instead of System.Drawing.Color)
4. Export to metafile doesn't exist. instead of it there are different types of export.

i found more points that are similar to the points i mentioned above.
i tried to make some manual conversion but I'm experiencing problems.

is there a simple way to migrate from teechart to teechart.WPF, or should i rewrite my code(thousands of lines)?
is it possible to embed teechart.WPF in a winform application? (currently i get some designer errors("events cannot be set on the object passed to the event binding service") and RT exceptions("Dispatcher processing has been suspended, but messages are still being processed")).

Re: TeeChart2011 and WPF

Posted: Tue Dec 13, 2011 1:04 pm
by 10050769
Hello MShefi,

If you want to migrate to WPF, you need do it manually and you only must change the namespaces and some particularities of framework WPF, the cases you have commented in your previous post, but most of TeeChart references are same. Therefore, you doesn't have do large changes in your code and you shouldn't be any problems, when you convert your code, but if you have any problems to converting your code Winforms to WPF, please let me know.

Thanks,