循环磁贴模板 Windows Phone 8.1

编程入门 行业动态 更新时间:2024-10-27 12:24:15
本文介绍了循环磁贴模板 Windows Phone 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 18:11:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1120962.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模板   Windows   Phone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!