private void UpdateLargeTile(DeliciousDrink drink)
        {
            // get the XML...
            var xml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWideImageAndText01);

            // replace the contents of 'text'...
            var tile = xml.SelectSingleNode("//tile");
            var text = tile.SelectSingleNode("//text");

            text.InnerText = drink.ToString();

            // put an image in...
            var image = tile.SelectSingleNode("//image");

            ImageIndex++;
            if (ImageIndex == 3)
            {
                ImageIndex = 0;
            }
            var url = string.Format("ms-appx:///Assets/Latte{0}.jpg", ImageIndex + 1);

            image.Attributes.GetNamedItem("src").NodeValue = url;

            // ask the OS to show it...
            var notification = new TileNotification(xml);

            TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
        }
        private void UpdateSmallTile(DeliciousDrink drink)
        {
            // get the XML...
            var xml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareText04);

            // replace the contents of 'text'...
            var tile = xml.SelectSingleNode("//tile");
            var text = tile.SelectSingleNode("//text");

            text.InnerText = drink.ToString();

            // ask the OS to show it...
            var notification = new TileNotification(xml);

            TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
        }
        private void UpdateLargeTile(DeliciousDrink drink)
        {
            // get the XML...
            var xml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWideImageAndText01);

            // replace the contents of 'text'...
            var tile = xml.SelectSingleNode("//tile");
            var text = tile.SelectSingleNode("//text");
            text.InnerText = drink.ToString();

            // put an image in...
            var image = tile.SelectSingleNode("//image");
            ImageIndex++;
            if (ImageIndex == 3)
                ImageIndex = 0;
            var url = string.Format("ms-appx:///Assets/Latte{0}.jpg", ImageIndex + 1);
            image.Attributes.GetNamedItem("src").NodeValue = url;

            // ask the OS to show it...
            var notification = new TileNotification(xml);
            TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
        }
        private void UpdateSmallTile(DeliciousDrink drink)
        {
            // get the XML...
            var xml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareText04);

            // replace the contents of 'text'...
            var tile = xml.SelectSingleNode("//tile");
            var text = tile.SelectSingleNode("//text");
            text.InnerText = drink.ToString();

            // ask the OS to show it...
            var notification = new TileNotification(xml);
            TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
        }