循环磁贴模板 Windows Phone 8.1 [英] Cyclic tile template Windows Phone 8.1

查看:30
本文介绍了循环磁贴模板 Windows Phone 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用此代码创建循环磁贴模板

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??

推荐答案

Cycle Tile 模板过时 - 适用于 Windows Phone 8 或 Windows Phone 8.1 Silverlight.您可以在此处阅读有关它们的信息一>.对于 Windows Phone 8.1 RT,您只能使用新模板,例如 TileSquare150x150Image,它们都在 此处列出.不幸的是,新的没有像 Cycle Tile 模板那样漂亮的Ken Burns"效果.

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.

这篇关于循环磁贴模板 Windows Phone 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆