简体   繁体   English

当我将应用程序的自定义图块固定到Windows Phone 8的“开始”屏幕时,如何控制背景色?

[英]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.

相关问题 如何从Windows Phone的实时活动图块中删除应用程序名称? - How do I remove the App name from my flipping live tile on Windows Phone? 如何避免将Windows Phone平铺图标用作Alpha蒙版? - How can I avoid my windows phone tile icon being used as an alpha mask? 如何防止盗版我的Windows Phone 8.1应用程序? - How can I prevent piracy of my Windows Phone 8.1 app? 如何在Windows Phone中更改所选项目的背景颜色? - How can I change selected item's background color in Windows Phone? 如何将Windows Phone 8应用程序移植到Windows Phone 8.1? - How can I port a Windows Phone 8 app to Windows Phone 8.1? 在固定到Windows Phone上的开始屏幕时,是否有办法使移动Web应用程序图标显示为图块? - Is there a way to get a mobile webapp icon to apear as the tile when pinning to start screen on a Windows Phone? 如何在自定义Windows Phone控件上添加进度条效果? - How can I add a progress bar effect on a custom windows phone control? 如何使用推式通知增加Windows Phone磁贴通知计数器(不知道实际的计数器值)? - How can I increment a Windows Phone tile notifications counter with Push Notification (not knowing the actual counter value)? 如何指定“导航页面”,即我希望我的应用程序在Windows Phone 8.1中开始的页面? - How do I specify the “Navigation Page”, i.e. the page I want my app to start with in Windows Phone 8.1? 我是否需要将平铺图像添加到Windows Phone 7.1以定位Windows Phone 8? - Do I need to add tile images to my Windows Phone 7.1 in order to target Windows Phone 8?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM