This is a migrated thread and some comments may be shown as answers.

save radhubtile to isolatedstoragefile

2 Answers 17 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 02 Mar 2013, 01:07 AM
Hello,

I'm trying to save a list<radhubtiles> to isolatedstoragefile however the rht.ImageSource is unserealizable and so saving to isolatedstorage fails.  Is there a method to save radhubtiles to isolatedstorage while keeping the images?

thanks,

jon

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 Mar 2013, 02:44 PM
Hi Jonathan,

Thanks for writing.
I am afraid that RadHubTile and its derivatives are not made for serialization. I suggest reorganizing your app, so that the hub tiles use data binding to display information contained in view models. This way you have full control over the data and its serialization (the view models) and the hub tiles will be left as the visualization components that they are.

Also, in order to save images to isolated storage you have to conver them to int[] arrays. You can do this with the help of writeable bitmap for example.

Regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Jonathan
Top achievements
Rank 1
answered on 04 Mar 2013, 02:47 PM
Good point thanks Victor.

Also I didn't mean to post this  question 3 times, I think my browser was acting funny.

thanks,

Jon
Tags
HubTile
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Victor
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or