locked
Not sure How Live tile should work, setup one time only or every time RRS feed

  • Question

  • Hi,

    In the MainPage, I have a button to lead user to the setting page for Live Tile.

    I am not sure how it works.

    The user click the button in the setting Page to setup the live tile as below.

    1) Does user need to click this button every time to have live tile to show the message?

    I tried below code. It shows only one time when using VS to do the deployment. When I turn off my PC and restart, I don't see the message in the tile. When I click the App-icon it launched the app and I clicked the button in the Setting page, it crushed and not showing the message.

    private void TextUpdateButton_Click(object sender, RoutedEventArgs e)
     { 
               
      XmlDocument tileData = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare150x150Block);
                
       XmlNodeList textData = tileData.GetElementsByTagName("text"); 
               
       textData[0].InnerText = "20 new lessons";
       textData[1].InnerText = "Today : 10 lessons";  
              
      TileNotification notification = new TileNotification(tileData);   
           
       TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);

      }

    Thanks

    Sunday, March 8, 2015 2:39 PM

Answers