【问题标题】:Cyclic tile template Windows Phone 8.1循环磁贴模板 Windows Phone 8.1
【发布时间】:2015-04-21 08:00:23
【问题描述】:

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

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

但瓷砖不是循环的,它们只是翻转。如何让上面的代码充当循环瓦片??

【问题讨论】:

    标签: c# windows-phone windows-phone-8.1 windows-8.1


    【解决方案1】:

    Cycle Tile 模板过时 - 适用于 Windows Phone 8 或 Windows Phone 8.1 Silverlight。你可以阅读他们here。对于 Windows Phone 8.1 RT,您只能使用新模板,例如 TileSquare150x150Image,它们都在here 中列出。不幸的是,新的没有像 Cycle Tile 模板那样好的“Ken Burns”效果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多