July 28, 2014
This property returns the phone lock state.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Property ValueType: System.Boolean
Returns Boolean. true to indicate that the phone is locked; false to indicate that the phone is unlocked. If you have set the PhoneApplicationService property ApplicationIdleDetectionMode to Disabled, your application will run underneath the lock screen. If the IsLocked property is set to true, for better performance, turn off all UI functionality because it cannot be viewed. The application should stop all operations that are not critical, such as animations, media, or sensors.