Custom serialization in tombstoning for 1.1

Topics: Getting Started
Jul 11, 2011 at 7:45 PM

Hi, I'm upgrading a 1.0 WP7 application to CM 1.1. Among other stuff, I'm removing the old attribute-based tombstoning and implementing storage classes. My (newbie) question is: how do I implement a custom serialization mechanism? E.g. one of my VM's has a StrokeCollection property and I'd like to serialize the strokes in it, but to this end I need to replace the default mechanism which would raise security exceptions. Could you show a fake code sample to illustrate how to configure the serialization of some property, so that I can place my own code for serializing/deserializing it? Thanks!