Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is DiagramNode.Expandable not serialized/deserialized? (Read 1334 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Is DiagramNode.Expandable not serialized/deserialized?
May 28th, 2013 at 3:35am
Print Post  
I'm not 100% sure, but my experiments seem to indicate that the DiagramNode.Expandable property is not included in serialization/deserialization processing. It's always set to false when I deserialize a node, even when I'm sure it was true when the node was serialized.

Is this a bug or a feature? Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is DiagramNode.Expandable not serialized/deserialized?
Reply #1 - May 28th, 2013 at 6:04am
Print Post  
We moved this from ShapeNode to DiagramNode a couple of years ago but haven't changed binary serialization code. You will need to add the following to your SaveTo / LoadFrom overrides if deriving directly from DiagramNode:

Code
Select All
writer.Write(Expandable);
...
SetExpandable(reader.ReadBoolean()); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is DiagramNode.Expandable not serialized/deserialized?
Reply #2 - May 30th, 2013 at 1:19pm
Print Post  
This v6.0.3 beta build serializes Expandable in the base DiagramNode class:
https://mindfusion.eu/_beta/fcnet603.zip

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