Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DeserializeTag not raised when loading DiagramDocument (Read 1647 times)
Dominic
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Jan 20th, 2014
DeserializeTag not raised when loading DiagramDocument
Jan 20th, 2014 at 1:08pm
Print Post  
Hi,
I try to use the DeserializeTag event when loading an DiagramDocument:
var dd = new DiagramDocument();
dd.DeserializeTag += MyDeserializer;
dd.LoadFromXml("myFile");
But the event is not raised.

I assume the event is raised only on the DiagramPage instance, not the DiagramDocument. Can you help me?

Thanks,
Dominic
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DeserializeTag not raised when loading DiagramDocument
Reply #1 - Jan 20th, 2014 at 4:40pm
Print Post  
Hi,

If you have the control's source code, find the page.LoadFromXml call in DiagramDocument.LoadFromXml, and set EventTarget = this just above it:

Code
Select All
page.EventTarget = this;
page.LoadFromXml(document, diagramElement);
....
// for single diagram xml too:
....
singlePage.EventTarget = this;
singlePage.LoadFromXml(document, rootElement); 



This fix will be available in version 3.0.4 we are now releasing.

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


I Love MindFusion!

Posts: 2
Joined: Jan 20th, 2014
Re: DeserializeTag not raised when loading DiagramDocument
Reply #2 - Jan 21st, 2014 at 4:47pm
Print Post  
Thanks, this is what I needed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint