循环磁贴模板 Windows Phone 8.1
Cyclic tile template Windows Phone 8.1
我正在尝试使用此代码创建循环磁贴模板
TileUpdateManager.CreateTileUpdaterForApplication().EnableNotificationQueue(true);
var tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare150x150Image);
var tileImage = tileXml.GetElementsByTagName(“image”)[0] as XmlElement;
tileImage.SetAttribute(“src”, “ms-appx:///Assets/image1.jpg”);
var tileNotification = new TileNotification(tileXml);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
tileImage.SetAttribute(“src”, “ms-appx:///Assets/image2.jpg”);
tileNotification = new TileNotification(tileXml);
tileNotification.Tag = “myTag”;
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
但瓷砖不是循环的,它们只是翻转。如何让上面的代码充当循环瓦片??
我正在尝试使用此代码创建循环磁贴模板
TileUpdateManager.CreateTileUpdaterForApplication().EnableNotificationQueue(true);
var tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare150x150Image);
var tileImage = tileXml.GetElementsByTagName(“image”)[0] as XmlElement;
tileImage.SetAttribute(“src”, “ms-appx:///Assets/image1.jpg”);
var tileNotification = new TileNotification(tileXml);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
tileImage.SetAttribute(“src”, “ms-appx:///Assets/image2.jpg”);
tileNotification = new TileNotification(tileXml);
tileNotification.Tag = “myTag”;
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
但瓷砖不是循环的,它们只是翻转。如何让上面的代码充当循环瓦片??