UWP Tile Background Color Not Working

别等时光非礼了梦想. 提交于 2019-12-10 15:53:56

问题


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.



来源:https://stackoverflow.com/questions/36503505/uwp-tile-background-color-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!