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?
TeeChart2011 and WPF
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TeeChart2011 and WPF
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: TeeChart2011 and WPF
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")).
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
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |