Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AnchorPattern lost after load from xml (Read 2106 times)
RunMan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Sep 24th, 2015
AnchorPattern lost after load from xml
Sep 24th, 2015 at 10:23am
Print Post  
Hello,

i implement a simple application to build , store and load diagrams. After load a saved diagram, the anchor patterns are lost. All anchor points are in the upper lift edge of the nodes.

What can i do to restore the anchor points?

Thank you
RunMan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AnchorPattern lost after load from xml
Reply #1 - Sep 24th, 2015 at 11:07am
Print Post  
Hi,

If you use AnchorPattern constructor that takes Id argument, the control will save only the identifier in XML files. It assumes that the pattern is registered by application's startup code and LoadFromXml will only call AnchorPattern.FromId when it sees the pattern's id value. If you want to save and restore everything from the pattern definition, do not specify id when constructing it.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
RunMan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Sep 24th, 2015
Re: AnchorPattern lost after load from xml
Reply #2 - Oct 6th, 2015 at 7:11am
Print Post  
Hi Stoyan,

this helps!

Thank you
RunMan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint