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.