Can I change the background color of the primary tile in WinRT?

前端 未结 1 568
余生分开走
余生分开走 2021-01-15 19:03

Is it possible to change the background color of the primary tile of my WinRT app? I\'d like to change it according to app status.

I use this code for changing the t

相关标签:
1条回答
  • 2021-01-15 19:42

    For the primary tile, the background color for most templates uses the app's color indicated in the manifest. This is done by design to promote a consistent branding via color for the app (tile, flyout panels, etc., all use the same color). However, if you use an image-only template and generate images on the fly, then of course you can use whatever colors you want.

    Generally speaking, however, live tiles are not intended to be used like gadgets. App status is more rightly indicated through badges on the tile, rather than the entire tile itself.

    The color limitation does not apply to secondary tiles, as they have background color and foreground text properties you can control individually.

    All this applies equally to tile updates sent from the app or from a background task--they use the same API so there's nothing unique to either.

    0 讨论(0)
提交回复
热议问题