Cyclic tile template Windows Phone 8.1

血红的双手。 提交于 2019-12-11 11:30:13

问题


I am trying to create cyclic tile template using this code

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);

But the tiles are not cyclic they are only flipping. How to make the above code to act as cyclic tile??


回答1:


Cycle Tile template is old - for Windows Phone 8 or Windows Phone 8.1 Silverlight. You can read about them here. For Windows Phone 8.1 RT you can only use the new templates like TileSquare150x150Image that are all listed here. The new ones unfortunately don't have the nice 'Ken Burns' effect like the Cycle Tile template.



来源:https://stackoverflow.com/questions/29766245/cyclic-tile-template-windows-phone-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!