1

I have an application where I have to run a piece of code when the application comes from the background to the foreground.

I can do it in three places(App.xaml.cs)

  1. OnLaunched

  2. OnActivated

  3. OnResuming

I had a breakpoint in all three places, but I am not seeing it get hit in OnActivated and OnResuming.

Basically, if I long press on back button it'll bring me all the opened applications I can choose one to bring it to forward.

But I am not getting the breakpoint hit.

4

0 回答 0