I have a method that I need to run when my app loses focus. Specifically, I need to update my live tile every time the user goes to the start menu. How can I trigger this method whenever the user either presses the back button or the start menu button?
I thought if I put it in the OnSuspending(object sender, SuspendingEventArgs e)
method in App.xaml.cs
that it would work, but it turns out this is not the case!! The closes I have found is when the app launches, but that doesn't really do what I want.