FAS not working

Nov 16, 2011 at 3:03 PM

Hello! Thanks for all the efforts done to make this library. I have some issues though.. and don't understand why. I've included your "two line code" method and am testing my app in the emulator.

 

I've activated the tombstoning option for debuging. all my controls have names; i then press the 'home' button and when i go back to my app i still see the "Resuming" loading message. I have in my App.xaml.cs a bool to see if my app was dormant or tombstoned :

WasTombstoned = !e.IsApplicationInstancePreserved;

and in my xaml view page i have : 

 

 protected override void OnNavigatedTo(NavigationEventArgs e)       

{            if (App.WasTombstoned == true)         

  {                this.RestoreState();            }

}

 

  protected override void OnNavigatingFrom(System.Windows.Navigation.NavigatingCancelEventArgs e) 

      {                        this.SaveState(e);        }

 

What am i doing wrong?

 

Coordinator
Nov 17, 2011 at 10:17 AM

For anyoen else finding this. See also: http://stackoverflow.com/questions/8154852/trouble-using-fast-application-switching

 and the extended discussion at http://chat.stackoverflow.com/rooms/5091/discussion-between-matt-lacey-and-badescu-alexandru