Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Phone 7 Silverlight Cookbook

You're reading from   Windows Phone 7 Silverlight Cookbook All the recipes you need to start creating apps and making money.

Arrow left icon
Product type Paperback
Published in Aug 2011
Publisher Packt
ISBN-13 9781849691161
Length 304 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jonathan Marbutt Jonathan Marbutt
Author Profile Icon Jonathan Marbutt
Jonathan Marbutt
Robb Schiefer Robb Schiefer
Author Profile Icon Robb Schiefer
Robb Schiefer
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Updating the tile background without push


In this task, we will update the background of our application tile on a static schedule. This is the simplest form of push notification. The application will provide some eye candy for the user on the home screen by updating the tile background with the NASA daily image.

Getting ready

Create a new project in Visual Studio named DailyTileBackground using the Windows Phone Application template.

How to do it...

Scheduled tile background updates do not require a custom service component, only code on the phone to define the schedule and image source. So, the code for this task will be located in the MainPage.xaml.cs code-behind file:

  1. 1. Add the using statement for the Microsoft.Phone.Shell namespace.

  2. 2. Create a new ShellTileSchedule type and set its properties:

    • Recurrence: The type UpdateRecurrence has two options:

      • OneTime: used for single tile updates.

      • Interval: used for multiple updates at a given interval type.

    • UpdateInterval: Only used if Recurrence is...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image