Cannot seem to get tombstoning to work for 7.1

Topics: Getting Started
Dec 28, 2011 at 8:24 AM

I've followed the samples and created a simple phone app.  The view has several textboxes, the viewmodel (conductor) has notifying properties, and a model storage overrides configure to store each property in AppSettings and PhoneState.  

When I run the app in debugging the values are empty first time, however I enter values and press the back button and then tap into the app again and the values do not restore.  

Am I missing something?

Does the CM tombstoning work in desktop debugging mode?

Thanks.

 

Dec 29, 2011 at 1:59 AM

how is the viewmodel declared in the bootstrapper?  PerRequest<>() or Singleton<>(), etc...

Dec 29, 2011 at 4:24 AM

PerRequest.  Should it be singleton?

Dec 29, 2011 at 8:06 AM

I did a few tests and it appears that when I use '.InPhoneState()' in the storage model the property values do not restore.

Dec 31, 2011 at 2:16 PM

well it does depend on the situation in which you want data to re-presented to the user.  for example I wanted to have settings information throughout my app so it is a singleton and when the app starts its information is available immediately throughout the app.

 

Morgan.