Storing List<AlphaKeyGroup<T>> when tombstone

Jun 8, 2014 at 3:59 PM
Edited Jun 8, 2014 at 4:01 PM
I have one longlistselector in my application , which needs to be stored on tombstoning. Longlistselector is binded to a List of AlphaKeygroup of T . How can I achieve this .

When using Obelisk , I am getting an error on serializing the object, stating unable to cast an object of type List<AlphaKeyGroup<T>> to AlphaKeyGroup<T> in the StoreObjectToIsolated method.
Jun 8, 2014 at 4:39 PM
Hi, simplify and expose the list as an array and mark the original list XmlIgnore for the Xmlserializer
Cheers
Jun 9, 2014 at 12:29 PM
Edited Jun 9, 2014 at 12:31 PM
Hi,

Thanks for the reply .

I found an alternate solution. I created an list of T and saved that on tombstone. and then in the onNavigatingto event I create back the List<AlphaKeygroup<T>> from it after checking if the application was tombstoned or not. I believe that the process adopted is fine and not going to create any problem .