Windows 8: Advanced Live Tiles, Part 2: Listing 5

Scheduling the badge or tile update

switch (notificationType)
 {
     case NotificationType.Badge:
         BadgeUpdateManager.CreateBadgeUpdaterForApplication().StartPeriodicUpdate(fullPollUri, updateDuration);
         break;
     case NotificationType.Tile:
         TileUpdateManager.CreateTileUpdaterForApplication().StartPeriodicUpdate(fullPollUri, updateDuration);
         break;
 }                case NotificationType.Tile:
                    TileUpdateManager.CreateTileUpdaterForApplication().StartPeriodicUpdate(fullPollUri, updateDuration);
                    break;
            }

About the Author

Eric Vogel is a Sr. Software Developer at Kunz, Leigh, & Associates in Okemos, MI. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at vogelvision@gmail.com.