This sample demonstrates how a developer can use the LockScreen API to set the current user's lock screen image. This sample uses classes from the Windows.System.UserProfile namespace. In particular, it uses the LockScreen class to set the user's lock screen image. It also demonstrates how to register an RSS feed that can be used as a source for a lock screen slideshow.
The lock screen is the screen shown when you lock your computer, as well as when you reboot the device or wake it from a sleep state. It is a user-customizable surface that both conveys information and protects the computer against unauthorized use.
The sample lets you use the item picker to select an image your Pictures library to use as the lock screen image. If the sample successfully uses the selected image for the lock screen, the image appears in the output area of the sample's main page. You can also select the location of an RSS feed that can supply images for a lock screen slideshow.
Note that to use this sample, your copy of Windows 8.1 must be activated.
To learn more about the lock screen, see Lock screen overview.
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Note For Windows 8 app samples, download the Windows 8 app samples pack. The samples in the Windows 8 app samples pack will build and run only on Microsoft Visual Studio 2012.
Related topics
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
To build this sample, open the solution (.sln) file titled Personalization.sln from Visual Studio 2013 for Windows 8.1 (any SKU). Press F7 or go to Build->Build Solution from the top menu after the sample has loaded.
Run the sample
To run this sample after building it, press F5 (run with debugging enabled) or Ctrl+F5 (run without debugging enabled) from Visual Studio 2013 for Windows 8.1 (any SKU). (Or select the corresponding options from the Debug menu.)