新的Live磁贴在Windows Phone Silverlight 8.1应用程序中不起作用? [英] New Live tiles don't work in Windows Phone Silverlight 8.1 apps?
问题描述
所以当我在看这个来自BUILD的视频时,我觉得这很容易......
但我似乎无法通过执行以下操作来改变我的WP Silverlight 8.1应用程序的内容。
But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following.
const string xml = "<tile>"
+ "<visual>"
+ "<binding template='TileSquareText01'>"
+ "<text id='1'>testing 123</text>"
+ "</binding> "
+ "</visual>"
+ "</tile>";
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xml);
var tileNotification = new TileNotification(xmlDoc);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
请注意我也创建了一个Windows RunTime Windows Phone 8.1具有完全相同的代码,它可以正常工作。
Please note I've also created a Windows RunTime Windows Phone 8.1 with exactly the same code and it works just fine.
在msdn上,它明确指出 TileUpdateManager 支持
Windows Phone Silverlight 8.1。所以我真的不知道这里缺少什么。
On msdn, it clearly states that TileUpdateManager supports Windows Phone Silverlight 8.1. So I don't really know what's missing here.
Justin L
推荐答案
嗨Justin,
Hi Justin,
那里是一个示例(辅助磁贴,但同样的事情):
http://code.msdn.microsoft.com/wpapps/Updating-a-pinned-c46958ca/view/SourceCode#content
There is a sample for that (Secondary tile but same thing): http://code.msdn.microsoft.com/wpapps/Updating-a-pinned-c46958ca/view/SourceCode#content
你必须留下一些东西你的项目。 将清单等...和您的代码与此代码进行比较。 请注意,第二种情况是您应该使用的情景。 第1天和5月都有问题。
You must be leaving something out of your project. Compare the manifest etc... and your code to this code. Note the 2nd scenario is the one you should use. There are problems with the 1st and MAY be your situation.
这篇关于新的Live磁贴在Windows Phone Silverlight 8.1应用程序中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!