Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Saving ControlNode (Read 1882 times)
castefani
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Feb 26th, 2009
Saving ControlNode
Mar 10th, 2009 at 8:40pm
Print Post  
I created a ControlNode:

            ControlNode n = new ControlNode (diagram, new Controls.CtlCircle ());
            n.Bounds = new rect (100, 100, 50, 50);
            diagram.Nodes.Add (n);



In diagram.SaveToString (SaveToStringFormat.Xml) occurs the following error:
      "The given key was not present in the dictionary."

Another question:
What direrença between SaveToStringFormat.Xml and SaveToStringFormat.Base64?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Saving ControlNode
Reply #1 - Mar 19th, 2009 at 12:04pm
Print Post  
Unfortunately it’s not possible to implement automatic serialization for hosted controls. Version 1.0.2 adds a SerializeControl and DeserializeControl event you could handle to implement custom serialization for the user control properties you need to save. You ca try this with the v1.0.2 beta here:

https://mindfusion.eu/_beta/DiagramLite102.zip

This should also fix the clipping issue from your previous post.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint