以编程方式更改 WP7 设备上的磁贴

发布于 2024-10-16 00:20:58 字数 101 浏览 4 评论 0原文

我正在制作一个应用程序,我想从应用程序内部生成一个新的图块,然后更改它 - 不涉及网络服务,并且当应用程序未运行时无需更改它。

有人知道该怎么做吗?

干杯!

I'm making an app where I would like to generate a new tile from inside the app, and then change it - no web service involved, and no need to change it when the app is not running.

Anyone know how to do this?

Cheers!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

负佳期 2024-10-23 00:20:58

正如@Derek所说,您可以使用磁贴时间表更新磁贴,但手机更新磁贴之前至少需要一个小时。

我在这里编写了有关如何立即更新磁贴的教程:

http://www.diaryofaninja.com/blog/2011/04/03/windows-phone-7-live-tile-schedules-ndash-executing -instant-live-tile-updates

基本上它涉及打开推送/Toast 更新通道,然后让手机发送“本身”实时图块更新请求。这将触发手机“立即”获取图块

希望这会有所帮助

as @Derek said, you can update the tile using the tile schedule, but will take an hour minimum before the phone updates the tile.

i have written a tutorial on how to update the tile instantly here:

http://www.diaryofaninja.com/blog/2011/04/03/windows-phone-7-live-tile-schedules-ndash-executing-instant-live-tile-updates

basically it involves opening a push/toast update channel and then getting the phone to send "itself" a live tile update request. this will trigger the phone to go and get the tile "right now"

hope this helps

无人问我粥可暖 2024-10-23 00:20:58

您可以使用 ShellTileSchedule 更新动态磁贴的背景图像,如 如何:在不使用 Windows Phone 推送通知的情况下更新磁贴。但是,用于该背景的图像必须来自远程位置,它不能由您的应用程序直接提供(除非您生成图像并将其发送到您自己的 Web 服务)。

如果您确实选择了 Microsoft 推送通知服务路线,您可能需要查看 Windows 推送通知服务器端帮助程序库 由 Windows Phone 团队提供。

You can update the background image for a Live tile by using the ShellTileSchedule as documented in How to: Update Your Tile Without Push Notifications for Windows Phone. However, the image that is used for that background must come from a remote location, it cannot be provided directly by your application (unless you generate the image and send it to your own web service).

If you do go down the Microsoft Push Notification Services route, you may want to take a look at the Windows Push Notification Server Side Helper Library provided by the Windows Phone team.

时光与爱终年不遇 2024-10-23 00:20:58

您可以从应用程序本身生成并发送磁贴推送通知消息。但不确定它是否适用于应用程序中的图像。 - 如果您尝试,请告诉我们。

You can generate and send a tile push notification message from the applicaiton itself. Not sure if it will work with an image in the app though. - Let us know if you try.

゛清羽墨安 2024-10-23 00:20:58

感谢您的信息!

它不会是来自应用程序的图像,因为我正在下载的 xml 文件指向正确的图像。不确定格式,但我想设置我自己的服务器来代理请求并根据需要调整图标大小不会太难。

但令人遗憾的是,我们无法在我们自己的应用程序中操纵“这个”的平铺图像......

Thanks for the info!

It won't be an image from the app, as the xml files I'm downloading are pointing to the correct image. Not sure about the format, but I guess setting up my own server to proxy the request and resize the icon as needed wouldn't be too hard.

But it's really sad we cannot manipulate the tile image for 'this' from within our own app...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文