当我使用EnableNotificationQueue(true)时,我能获得索引i值是否已修复且可以更改? [英] When I use EnableNotificationQueue(true),Can I get index i value is fix and can,t change?
问题描述
亲爱的所有人:
当我使用通知队列 已启用"EnableNotificationQueue(true)" ,最多五个图块通知可以在图块上自动循环,但是为什么在索引i值首先显示的是4,3,2,1,0然后是次要的,第三个更改为0,1,2,3,4瓷砖上的
?
When I used notification queue is enabled "EnableNotificationQueue(true)" ,a maximum of five tile notifications can automatically cycle on the tile,but why below index i value first show is 4,3,2,1,0 then secondary,third change to 0,1,2,3,4 on the tile?
怎样才能获得第一个,secindry ... index i 值是0,1,2,3,4在瓷砖上?  ;
How can get first,secindry... index i value is 0,1,2,3,4 on the tile?
代码:
TileUpdateManager.CreateTileUpdaterForApplication()。EnableNotificationQueue(true);
for(int i = 0; i< 5; i ++)
{
var template = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWideText03);
var tileAttributes = template.GetElementsByTagName(" text")[0];
tileAttributes.AppendChild(template.CreateTextNode(" show index: " + i));
var tileNotification = new TileNotification(template);
TileUpdateManager.CreateTileUpdaterForApplication()。更新(tileNotification);
}
TileUpdateManager.CreateTileUpdaterForApplication().EnableNotificationQueue(true);
for (int i = 0; i < 5; i++)
{
var template = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWideText03);
var tileAttributes = template.GetElementsByTagName("text")[0];
tileAttributes.AppendChild(template.CreateTextNode("show index : " + i));
var tileNotification = new TileNotification(template);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
}
推荐答案
嗨Jesse,
Hi Jesse,
我不明白你在问什么。 你能提供更多信息吗?
I do not understand what you are asking. Could you provide more information?
-Jeff
这篇关于当我使用EnableNotificationQueue(true)时,我能获得索引i值是否已修复且可以更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!