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

  • New TypeScript 4.2 Tweaks Include Project Explainer

    Microsoft shipped TypeScript 4.2 -- the regular quarterly update to the open source programming language that improves JavaScript with static types -- with a host of tweaks including a way to explain why files are included in a project.

  • What's Top-Paying .NET Skill, In-Demand Language?

    New tech reports reveal the top-paying .NET skills and most in-demand programming languages in the Microsoft-centric developer landscape.

  • Microsoft's Distributed Application Runtime (Dapr) Debuts for Microservices

    Dapr is now production ready in version 1.0, easing microservices development on-premises, on the edge or in the cloud by abstracting away distributed computing hassles.

  • What's New in EF Core 6.0 Preview 1

    The Entity Framework Core 6 dev team shipped Preview 1 this week, headed toward a debut with the larger, unifying .NET 6 umbrella platform in November.

Upcoming Events