How to change background color of the Metro App tile

回答済み How to change background color of the Metro App tile

  • 21 Desember 2011 23:01
     
     

    Hi,

    I created live tiles for my Metro app. But I couldn't able to figure out how to change the background color of the tiles. Currently , my live tiles were showing the content on black colored background. Please help me to understand how to get different background color for tiles. Also

    Thanks,

    Suresh

     


    Suresh

Semua Balasan

  • 22 Desember 2011 14:09
    Moderator
     
     Jawab

    Hi Suresh,

    Your tiles will use the background color of your application.  This is specified in your Manifest in the first Tab.

    -Jeff


    Jeff Sanders (MSFT)
  • 22 Desember 2011 18:10
     
     

    Thanks Jeff!

    I have changed my tile background. The other issue I am facing since the beginning is sometimes the tiles were showing with content broken and sometimes blank tile as shown below:

    This is happening only for my app, the rest of the default apps in Windows 8 works fine. Can you suggest me how to fix this.

    Thanks,

    Suresh


    Suresh
  • 27 Desember 2011 14:20
    Moderator
     
     

    Hi Suresh,

    I have seen this when you do not use the correct image size of have changed the XML inappropriately.

    What are the parameters you are using for these values?

    -Jeff


    Jeff Sanders (MSFT)
  • 27 Desember 2011 22:03
     
     
    Hi Jeff,
    Yes I used different sized images for tiles. what are the correct dimensions of the Image for Wide and short tiles?
    I used the Templates TileTemplateType.TileWideImage,TileTemplateType.TileWideText01 and TileTemplateType.TileWideSmallImageAndText02.  I extracted Image element and text elements correctly from Template XMLs and updated.
    Thanks, 

    Suresh
  • 28 Desember 2011 13:54
    Moderator
     
     Jawab

    Suresh,

    You can get the image sizes from the Simple and or Advanced Tile Samples.

    -Jeff


    Jeff Sanders (MSFT)