How can I know Metro app tile is visible now?


  • On Win8 Metro screen, each metro app appears as a tile. So, how can I know the tile of my metro app is visible now to users? I want to do something in my metro app based on the visibility of this metro app tile. Please give me some infomation about this, or is there any sample code?
    Tuesday, July 03, 2012 12:51 PM

All replies

  • Hello,

    Not clear your point. As far as I know, the metro app tile we called Secondary Tiles. We can change the background image, the text in the secondary tiles.

    Here is document about  secondary tiles

    Here is the sample code of it

    Best regards,

    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, July 04, 2012 6:17 AM
  • The usage scenarios is following:

    We send a request periodically to mobile device, and get the information from mobile device, and then display it on the secondary tile. Because of it is a mobile device, querying something from it from time to time will cause serious power exhaust. So we want to design our app in such a way: if the secondary tile of our app is now visable for users, then we continue to send request to device, otherwise, we should stop sending request to device for power saving.

    So we want to know the method to know whether the secondary tile is visible now.


    Wednesday, July 04, 2012 8:32 AM
  • To consider this question from another side, if our metro app is now not in the foreground, will the content of our app secondary tile still update from time to time?

    And, is there any API tell us that our app is in the foreground?

    Thursday, July 05, 2012 1:40 PM
  • Any ideas or suggestions please?
    Wednesday, August 01, 2012 9:22 AM
  • Hi,

    When you application turn to background, it will fire the suspend event, and then resume event will fire when turn to active.

    On the other way, you can try Window.Current.VisibilityChanged property. For more information, please check this thread

    Best regards,

    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, August 02, 2012 7:37 AM