I have serialize of bitmapImage using Xml Serialization. It giving error,
“XML serialization of Uri throws SecurityException”
I have Collection of BitmapImage in Observablecollection. OnDeactivation(Tombstone) I am saving property types of Persistent class. On Saving I used Serailization.
Pls Help me, How to solve this
I suggest saving to Isolated storage as well.
Here is the approach that I have used:
Utility methods to convert BitmapImage to byte[] and back:
You can then store the byte[] to Isolated Storage trivially. I used a Dictionary like this: