I'm currently working on live tile notifications for my Universal App. I'm running into an issue where the wide tile is not showing anything, but the small tile is working fine; can anyone point me in the right direction of why my wide tile isn't showing anything correctly? It works fine with just a text-based tile (i.e. TileTemplateType.TileWide310x150Text03).
Thank you! Below is my code to push notifications.
foreach (var item in temp)
{
XmlDocument tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWide310x150PeekImage06);
var title = item.Title;
string titleText = title.Text == null ? String.Empty : title.Text;
tileXml.GetElementsByTagName(textElementName)[0].InnerText = titleText;
XmlNodeList wideTileImageAttrib = tileXml.GetElementsByTagName("image");
((XmlElement)wideTileImageAttrib[0]).SetAttribute("src", "http://i.imgur.com/DjooITV.jpg");
((XmlElement)wideTileImageAttrib[0]).SetAttribute("alt", "Image");
Debug.WriteLine(tileXml.ToString());
// Create a new tile notification.
updater.Update(new TileNotification(tileXml));
tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare150x150Text04);
tileXml.GetElementsByTagName(textElementName)[0].InnerText = titleText;
Debug.WriteLine(tileXml.ToString());
// Create a new tile notification.
updater.Update(new TileNotification(tileXml));
}