Advertisement
IzaacJ

Ignoring serialization of BitmapImage?

Feb 18th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. I have a ViewModel containing a couple of public and private strings and one public BitmapImage, and when trying to serialize an instance of that ViewModel I get "'System.Windows.Media.ImageSource' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute."
  2.  
  3. How to ignore the serialization of the BitmapImage (I guess that's the issue) since that object is fetched from local storage in the get property?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement