Accessing current page while suspending RRS feed

  • Question

  • I need to save my app's state data when it is suspended. This is, from what I have read, done using the Application.Current.Suspending event. However, because my data is in MainPage.xaml.vb, I do not have access to it in events fired by the App class, so it does not help me to put code in App.xaml.vb, and MainPage.xaml.vb does not have a Suspending event. Where am I supposed to save my data from MainPage.xaml.vb when the app is suspended? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Thursday, August 7, 2014 11:44 PM