I have a class defining a Person. In the class I have it defined like this:
[XmlIgnore]
public BitmapImage PhotoSource
{
get { return _PhotoSource; }
set
{
_PhotoSource = value;
NotifyPropertyChanged( "PhotoSource" );
}
}
I added the :
[XmlIgnore]
vs. using the
[DataMember]
since the serialization will not work with BitmapImage.
However, I still need to save the BitmapImage Local and/or Roaming.
How can that be accomplished?
Thanks,
EitanB
Create a file from your BitmapImage and then use the StorageFile class to write it to the filesystem.
To load the file back into a BitmapImage: