Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic what considerations should i pay attention when plan migrating to WPF ? (Read 1298 times)
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
what considerations should i pay attention when plan migrating to WPF ?
Jun 2nd, 2012 at 12:01pm
Print Post  
I am now working on diagramming for winForm, and would  go diagrmming for Wpf or silverlight, can give suggestions ?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: what considerations should i pay attention when plan migrating to WPF ?
Reply #1 - Jun 4th, 2012 at 6:44am
Print Post  
The API is identical so you shouldn't have problems reusing the diagram related code in your WPF application. If you save your diagrams with the built-in serialization methods, use the XML file format to be able to load them in our controls for other platforms.

There are some node types that are available only in the Windows Forms version - such as SvgNode and CompositeNode. If you are using them, better create a derived node type that you can implement later in WPF using similar features; e.g. you could replace an SvgNode base with ShapeNode and display XAML drawing instead of SVG drawing, or replace a WinForms CompositeNode base and its XML template with a WPF TemplatedNode and XAML template. This will localize the required changes to just the derived classes, so you won't have to replace node types all over your code.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint