This sample shows how to update a tile from a background task in a Windows Phone Store app.
This sample shows how to update a tile from a background task. It shows how to implement a XamlRenderingBackgroundTask and use RenderTargetBitmap to generate an updated tile image from a custom XAML layout.
Important To keep the memory footprint of the background task as low as possible, the XamllRenderingBackgroundTask is implemented in a C++ Windows Runtime Component for Windows Phone. The memory footprint will be higher if written in C# and will cause out of memory exceptions on low-memory devices which will terminate the background task. For more information on memory constraints, see Additional background task resource constraints for Windows Phone.
Note This sample requires Windows 8.1 and Microsoft Visual Studio 2013 with Update 2 or later.
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Visual Studio 2013 , go to Visual Studio 2013 . After you install Visual Studio 2013, update your installation with Update 2 or later.
Operating system requirements
| Client | |
|---|---|
| Server | |
| Phone |
Build the sample
- Start Visual Studio Express 2013 for Windows --> and select File > Open > Project/Solution.
- Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio Express 2013 for Windows Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.