Are there any events before the screen got locked in Windows Phone?

229 Views Asked by At

As the title specifies, I want to know if any events will happen before the screen gets locked in Windows Phone 7, so that before the screen got locked I can use some combined conditions to determine setting the IdleDetectionMode to Disabled or not.

Or can we get the system screen locking time?

1

There are 1 best solutions below

0
On

I think you should try using Obscured(Occurs when the shell chrome is covering the frame) and Unobscured(Occurs when the shell chrome is no longer covering the frame) events for PhoneApplicationFrame.

You can always get the instance of PhoneApplicationFrame using (PhoneApplicationFrame)App.Current.RootVisual, but be careful and do not create memory leaks.