When moving to "Running" state there is special handler connected with this event:
Open "App.xaml.cx" class and see "OnLaunched" method - this is activated when applicaiton is opened by user from "Terminaded" state:
protected override void OnLaunched(LaunchA...
When moving to "Suspened" state there is special handler connected with this event: Open "App.xaml.cx" class and see "App" constructor - there is event handler:
public App()
{
this.InitializeComponent();
//Handle suspending operation with event h...
Your application can be opened by user from "Suspended" state. When doing it "OnResuming" event handler is used. In "App.xaml.cs" class:
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
//Handle resuming operat...