UWP平铺背景色不起作用

UWP平铺背景色不起作用

本文介绍了UWP平铺背景色不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将应用清单中的背景颜色设置为黑色,但图块在应用列表中仍显示为蓝色,固定到开始屏幕时仍显示为透明.磁贴颜色在IDE(VS)中已更改,但在电话模拟器中运行时却未更改.

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.

存在类似的问答: Windows 8 Live Tile图标背景色,但这是专门针对Windows 8的,实际上说您可以将其设置为我发现不正确的任何内容.

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.

推荐答案

问题是该值必须是十六进制值,这在VS IDE中不是很清楚.

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

实际上,在应用程序清单中将背景色设置为黑色"会在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.

将其更改为#000000终于解决了我的问题.

Changing it to #000000 finally resolved my problem.

这篇关于UWP平铺背景色不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 02:10