1. amir's Avatar
    Hi there
    I need to display a toaster only when the screen is activated (device is not in standby mode/ locked). I wonder is there any API in mango to detect the screen status? Any help is highly appreciated...
    BR
    Amir
    08-24-2011 11:32 AM
  2. thed's Avatar
    I'm not sure if this is the best way, but you can use the PhoneApplicationFrame.Obscured event to determine when your app is obscured by the OS chrome (including the lockscreen). In your event handling method you can then check the IsLocked property of the ObscuredEventArgs object to see if the screen is locked.
    08-24-2011 12:41 PM

Tags for this Thread

LINK TO POST COPIED TO CLIPBOARD