开发者

WP 7.1 Live Tiles "Unpinned" listener

开发者 https://www.devze.com 2023-03-25 19:34 出处:网络
I\'m playing with live tiles on Mango and it\'s all nice and all. User can delete secondary tiles and everything, but if the user \"unpins\" a secondary tile is there a way to know that tile is gone?

I'm playing with live tiles on Mango and it's all nice and all. User can delete secondary tiles and everything, but if the user "unpins" a secondary tile is there a way to know that tile is gone?

I want to persist data about an object when it's pinned. And I want to be able开发者_JAVA百科 to delete that data when it's unpinned (from the start menu).

Is there something that's fired when a secondary tile tied to your app is unpinned?


There is no event that is fired when the secondary tile is unpinned. However, you can check for your application's active live tiles by querying the ShellTile.ActiveTiles collection. Not knowing your scenario you could run this check during the various application lifecycle events.

There is a decent screen cast on how to update tiles and use secondary tiles over on http://msdev.com as well as a How-To on MSDN. Both of these show examples of using the ShellTile.ActiveTiles API.

0

精彩评论

暂无评论...
验证码 换一张
取 消