I have an object which contains one boolean property IsPinnedToStart. This property is set to true when the user creates a secondary tile from the main application. This property is set to false when the user unpins the tile from main application.
But, when i unpin the tile from Start, the property is not updated otherwise.
So my main question is how do i get notified in application when i unpin the secondary tile from Start Screen?
Any help will be highly appreciated.
Thanx in advance … 🙂
You don’t. You should query all the tiles that your app has created in the start screen (in the ShellTile.ActiveTiles collection), and determine from there whether the current content item is pinned or not.
for example, to delete a tile linking to a specific item id…
or to determine if there is a tile for a specific item id…
note : Code untested, and based on a blog post here