English 中文(简体)
WP 7.1 Live Tiles "Unpinned" listener
原标题:

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 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.

问题回答

暂无回答




相关问题
How to repeat an image in C#

I have an image with a certain pattern. How do I repeat it in another image using GDI? Is there any method to do it in GDI?

Tile 2 popup windows

I have struggled with this for a week now and seem to hit walls everywhere I go...so here i am looking for some help with this....hopfuly it is possible. I need to TILE 2 popup windows....dont worry.....

OpenGL Threaded Tile Texture Loading with Qt 4.5 / 4.6

I am trying to develop am map application for scientific purposes at my university. Therefor I got access to a lot of tiles (256x256). I can access them and save them to an QImage in a seperate ...

Culling offscreen tiles in an Isometric engine

For a university term project, I m working on a graphical roguelike (I m aware of the contradiction in terms :P) that uses an isometric display. What I m trying to figure out is, since drawing all ...

Tile inside Accordion does not resize correctly

In a Flex application I m building I have an Accordion with a Tile component as shown: <mx:Accordion id="accordionShoppingBasket" width="100%" resizeToContent="true"> <mx:VBox width="100%...

AS3 - Tile image/movieclip along a line

If possible I would like to tile an image or MovieClip along a line using the standard moveTo() and lineTo() methods, The lines are directional so need to show something similar to >>>>>...

热门标签