ObscuredEventArgs.IsLocked Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
This property returns the phone lock state.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Property Value
Type: System.BooleanReturns 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.
Show: