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 Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. 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 [email protected].

comments powered by Disqus

Featured

Subscribe on YouTube