closing app with alt-f4 loses session state.

Dec 30, 2014 at 7:17 AM
Hi,

Everything works fine as long as my app is suspended and then shutdown. But, if I hit alt-f4 to close my app, I lose my session state. The SessionState is empty. None of my RestorableState views get populated. The app starts up "empty". All data that I have just entered is gone.

Is there a way to handle shutdown of the app with alt-f4 and still save session state?

Note: I have read a few posts where you create items in the session state dictionary that are not part of the saved viewmodel states but those too are defeated by alt-f4.

Thanks,

Brian.