[英]When I pin a custom tile for my app to the Windows Phone 8 start screen how can I control the background color?
When the user pins my app to their start screen I would like to provide my own custom background color rather than use the accent color currently in use. 当用户将我的应用程序固定到其开始屏幕时,我想提供自己的自定义背景色,而不是使用当前使用的强调色。 I thought this would work:
我认为这可以工作:
<Tokens>
<PrimaryToken TokenID="" TaskName="_default">
<TemplateIconic>
<SmallImageURI IsRelative="true" IsResource="false">Assets\Tiles\SmallTile.png</SmallImageURI>
<Count>0</Count>
<IconImageURI IsRelative="true" IsResource="false">Assets\Tiles\MediumTile.png</IconImageURI>
<Title></Title>
<Message></Message>
**<BackgroundColor>#FFFB8102</BackgroundColor>**
<HasLarge>True</HasLarge>
<LargeContent1></LargeContent1>
<LargeContent2></LargeContent2>
<LargeContent3></LargeContent3>
<DeviceLockImageURI IsRelative="true" IsResource="false" />
</TemplateIconic>
</PrimaryToken>
</Tokens>
When I pin the tile in the emulator currently one of two situation arises: If provide a transparent background all I see my image, but the fill color is the accent If I provide my image with the background color baked into the image, I get a while blob surrounded by the accent color. 当我将图钉固定在仿真器中时,出现以下两种情况之一:如果提供透明的背景,则我看到的都是我的图像,但是填充色是重音。如果我提供的图像带有烘焙到图像中的背景色,则会得到而斑点被重音色包围。
Please keep in mind this is a Windows Phone 8 app, not Phone 7. Far as I know, there is no ApplicationTile image that I can specify. 请记住,这是Windows Phone 8应用程序,而不是Phone7。据我所知,没有可以指定的ApplicationTile映像。
Please help. 请帮忙。
Thanks in advance 提前致谢
My mistake. 我的错。 You cant specify the AA values of the ARGB when you provide the background color.
提供背景色时,无法指定ARGB的AA值。 Too tired
太累了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.