What event or events are fired when on appearance of alarms, reminders, or phone call notifications?

StackOverflow https://stackoverflow.com/questions/14008416

Question

I'm working on a WP Silverlight game with a timer, and so need to pause the game whenever something happens to take focus away from the app. However, the PhoneApplicationService events don't fire when alarms or reminders appear on the screen, nor when phone calls arrive.

I tried overriding OnGotFocus/OnLostFocus on the page used for the game screen, but they aren't called either when a reminder/alarm dialog appears. Which brings us back to my question -- what events or overrides will let me know when alarms, reminders or calls have taken focus so I can pause my game appropriately?

Was it helpful?

Solution

I believe it's the Obscured event - see this forum post and this one as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top