Share via

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.

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


Public ReadOnly Property IsLocked As Boolean
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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


ObscuredEventArgs Class

Microsoft.Phone.Controls Namespace