UWP Tile Background Color Not Working

2019-06-25 05:36发布

问题:

I set the background color in the app manifest to black but the tile still shows blue in the app list and transparent when pinned to the start screen. The tile color is changed in the IDE (VS) but not when I run it in the phone emulator.

There is a similar question and answer: Windows 8 Live Tile Icon Background Color, but it is specifically for Windows 8 and actually says you can set it to anything which is not true as I found out.

回答1:

The problem is the value must be a hex value, which is not very clear in the VS IDE.

In fact setting the background color to "black" in the app manifest will show the tiles in the IDE as having black backgrounds and it will even make the tile background black when ran as a desktop app; but when run in the phone emulator it was completely ignoring the defined background color.

Changing it to #000000 finally resolved my problem.