TeeChart2011 and WPF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MShefi
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

TeeChart2011 and WPF

Post by MShefi » Sun Dec 04, 2011 9:38 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TeeChart2011 and WPF

Post by Narcís » Mon Dec 05, 2011 9:28 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MShefi
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

Re: TeeChart2011 and WPF

Post by MShefi » Tue Dec 13, 2011 7:35 am

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")).

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TeeChart2011 and WPF

Post by Sandra » Tue Dec 13, 2011 1:04 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply