Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Serialize ControlNode (Read 1548 times)
educosta
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Nov 5th, 2009
Serialize ControlNode
Mar 9th, 2010 at 7:28pm
Print Post  
I need to save a diagram with a ControlNode. It is possible?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Serialize ControlNode
Reply #1 - Mar 10th, 2010 at 8:50am
Print Post  
It's possible, but you will need to implement serialization by handling the SerializeControl and DeserializeControl events.

Stoyan
  
Back to top
 
IP Logged
 
educosta
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Nov 5th, 2009
Re: Serialize ControlNode
Reply #2 - Mar 10th, 2010 at 12:13pm
Print Post  
Ok.

How can i use WriteTag method?

I need to serialize the tag property of the ControlNode.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Serialize ControlNode
Reply #3 - Mar 10th, 2010 at 4:30pm
Print Post  
In Silverlight WriteTag will work only for strings and numerical values. In the WPF version we use the XamlWriter class to serialize arbitrary objects, but unfortunately it is not available in Silverlight yet. If the Tag value is not one of these simple types, the control just raises the SerializeTag event.

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