IsLocked Property
Collapse the table of content
Expand the table of content

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)

'Declaration
Public ReadOnly Property IsLocked As Boolean

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

Show:
© 2017 Microsoft