ObscuredEventArgs.IsLocked Property

July 28, 2014

This property returns the phone lock state.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public bool IsLocked { get; }

Property Value

Type: 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft