WP7 tombstoning with serialization

Oct 3, 2011 at 9:01 AM

Hello

I am developing a WP7 application, and reached the tombstoning stage…

There are a lot of different solutions for that, but I understand that now, with MVVM light ver. 4, the best solution is to use serialization. I cannot found any example of this method.

I don’t understand how the sterilization occur on Application_Deactivated

And Application_Activated.

 

Thanks!

Oct 8, 2011 at 10:24 PM

Hi all,

 I've the same issue than idosmail. I am migrating to V4 to solve the issue of serialization, but it still not work.

 ***

{System.Runtime.Serialization.InvalidDataContractException: Type 'Expense2.ViewModel.vmBase' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'GalaSoft.MvvmLight.ViewModelBase' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.

 ***

Any idea to solve this topic?

Thank