Windows 8 Windows 8定期磁贴不更新

Windows 8 Windows 8定期磁贴不更新,windows-8,Windows 8,我已经为Windows8定期更新创建了一个动态页面。磁贴的url为: 因此,我尝试使用以下代码: // update the tile poll URI var notifications = Windows.UI.Notifications; var polledUri = new Windows.Foundation.Uri("http://www.dealsapiens.co.uk/ws/xml.aspx?action=tile"); var recurrence = notificat

我已经为Windows8定期更新创建了一个动态页面。磁贴的url为:

因此,我尝试使用以下代码:

// update the tile poll URI
var notifications = Windows.UI.Notifications;
var polledUri = new Windows.Foundation.Uri("http://www.dealsapiens.co.uk/ws/xml.aspx?action=tile");
var recurrence = notifications.PeriodicUpdateRecurrence.hour;
var tileUpdater = notifications.TileUpdateManager.createTileUpdaterForApplication();
tileUpdater.startPeriodicUpdate(polledUri, recurrence);

但是,当我运行并停止“添加并转到开始”菜单时,我看不到平铺图像,它只是渲染一个黑色平铺。有什么想法吗?我的平铺XML有问题吗?

在模板中,您使用的id属性值无效。ID对应于磁贴中的位置。对于方形瓷砖,id应为1;对于宽平铺,您需要ID 1到5,每个ID对应于该图像应占据的平铺区域

我已经调整了您的tile XML并将其托管在-试一试。这对我有好处