Schedule the Tile update in Windows Phone 7.5 or Mango Phone

Read here about Live Tiles in Windows Phone 7.5 or Mango phone

You may have a requirement to schedule the update of the tiles. It is very much possible in Windows Phone 7.5 or Mango phone.

 

image

 

You can set UpdateIntravel as below,

image

You can set UpdateRecurrence as below,

clip_image001

In last post we discussed the way to update a tile by querying the tile using query string of the tile URI. Here again we will query tile in same way and schedule the update.

image

Below function will schedule a tile update.

 


private void ScheduletilesUpdate()
        {
            var uri = new Uri("/LiveTileUserControl.xaml?state= Live Tile", UriKind.Relative);
            ShellTile tileToUpdate = ShellTile.ActiveTiles.Where(t => t.NavigationUri == uri).FirstOrDefault();
            ShellTileSchedule SampleTileSchedule = new ShellTileSchedule(tileToUpdate);
            SampleTileSchedule.Recurrence = UpdateRecurrence.Interval;
            SampleTileSchedule.Interval = UpdateInterval.EveryHour;
            var tilesUpdatedData = new StandardTileData
            {
                Title = "Created Tiles Updated ",
                Count = 450,
                BackTitle = "Back Title"

            };

            tileToUpdate.Update(tilesUpdatedData);


        }


 

This was all about scheduling update of tiles.

image

 

I hope this post was useful. Thanks for reading Smile


Discover more from Dhananjay Kumar

Subscribe to get the latest posts sent to your email.

Published by Dhananjay Kumar

Dhananjay Kumar is founder of NomadCoder and ng-India

2 thoughts on “Schedule the Tile update in Windows Phone 7.5 or Mango Phone

Leave a comment

Discover more from Dhananjay Kumar

Subscribe now to keep reading and get access to the full archive.

Continue reading