Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LoadFromString method (Read 1264 times)
123danian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 27th, 2009
LoadFromString method
Oct 22nd, 2009 at 7:50am
Print Post  
hi, when i use the LoadFromString method,i found it cannot get the nodes' images, and some other attributes. 
for example: there is a ShapeNode in the diagram
node.image = ...
node.transparent = true;
firstly, i use the SaveToString method to save the diagram , then i use  LoadFromString to load the diagram, the node's image missed,and the transparent attribute also worng, so how can i do to avoid the porblem?
thanks!

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LoadFromString method
Reply #1 - Oct 22nd, 2009 at 11:46am
Print Post  
Hi,

There aren't image encoders provided by Silverlight, so the image data is not saved. You could associate an image to a node using an URI, and then it should be saved and restored successfully through the URI. E.g. you can specify an image URL on your site via the ImageWebLocation property, or image location in the XAP file via ImageResourceLocation.

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