Tiles in Windows Phone Mango – Update an Application Tile using ShellTile APIs

In my previous articles, i gave an overview of the Tiles in Windows Phone Mango.

In this article, i will explain how developers can use the ShellTile API to update the Application Tile.

Note the restriction on using the ShellTile API.  This can be used to Update the Application Tile and cannot be used to Create or delete an Application Tile.

We should use the ShellTile.ActiveTiles.First () to get the access to the Tile of the Application .

This will always return the Application Tile even if the App is not pinned to the Start Screen.

We can then use the StandardTileData class to create the Data for the Tile and then use the Update Method of the “ShellTile” with the data.

To access the ShellTile , we should also use the namespace Microsoft.Phone.Shell in the code behind file .

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace PhoneApp5
    public partial class MainPage : PhoneApplicationPage
        // Constructor
        public MainPage()

        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)

        private void UpdateApplicationTile()


            ShellTile ApplicationTile = ShellTile.ActiveTiles.First();

            if (ApplicationTile != null)


               // In this example , the default image will be used

               StandardTileData NewTileData = new StandardTileData

               { Title = "WP7 Rocks",

               BackgroundImage = null,

               Count = 99,

               BackTitle = "By Senthil",

               BackBackgroundImage = null,

               BackContent = "Twitter : @isenthil" };

               // Updates the Application Tile



} }



via Tiles in Windows Phone Mango – Update an Application Tile using ShellTile APIs


If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


Interesting BlogPosts to read

Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...
Popular cross-platform (android and iOS) to-do list app
In this blog post, we will cover some of the popular to-do list app that is available on different p...