WP8 - Live Tile图标颜色

时间:2014-07-14 13:02:38

标签: windows-phone-8 live-tile

如何在Windows Phone应用中设置实时图块主图标的颜色?默认情况下,Windows Phone 8将其设置为黑白。

我想将图标设置为红色,类似于Evernote图块的图标为灰色。谁知道怎么做?

谢谢!

1 个答案:

答案 0 :(得分:0)

文档提供了有关此内容的信息:Iconic Tile template for Windows Phone 8

<强> XAML

<?xml version="1.0" encoding="utf-8"?>
<wp:Notification xmlns:wp="WPNotification" Version="2.0">
  <wp:Tile Id="[Tile ID]" Template="IconicTile">
    <wp:SmallIconImage [Action="Clear"]>[small Tile size URI]</wp:SmallIconImage>
    <wp:IconImage Action="Clear">[medium/wide Tile size URI]</wp:IconImage>
    <wp:WideContent1 Action="Clear">[1st row of content]</wp:WideContent1>
    <wp:WideContent2 Action="Clear">[2nd row of content]</wp:WideContent2>
    <wp:WideContent3 Action="Clear">[3rd row of content]</wp:WideContent3>
    <wp:Count Action="Clear">[count]</wp:Count>
    <wp:Title Action="Clear">[title]</wp:Title>
    <wp:BackgroundColor Action="Clear">[hex ARGB format color]</wp:BackgroundColor>
  </wp:Tile>
</wp:Notification>

<强> C#

IconicTileData TileData = new IconicTileData()
{
    Title = "[title]",
    Count = [count],
    WideContent1 = "[1st row of content]",
    WideContent2 = "[2nd row of content]",
    WideContent3 = "[3rd row of content]",
    SmallIconImage = [small Tile size URI],
    IconImage = [medium/wide Tile size URI],
    BackgroundColor = [.NET color type of Tile]
};