2013-02-28 41 views
1

我想在Windows Phone 8中使用IconicTileData類,除了瓷磚的顏色以外,所有工作都很好。IconicTileData BackgroundColor不被顯示

無論我將屬性設置爲平鋪顯示重音顏色而不是提供的顏色。

ShellTile.Create(navigateUri, new IconicTileData 
{ 
    Title = category.Name, 
    BackgroundColor = Colors.Magenta, 
    IconImage = new Uri("/Resources/Tiles/IconicLarge.png", UriKind.Relative), 
    SmallIconImage= new Uri("/Resources/Tiles/IconicSmall.png", UriKind.Relative) 
}, true); 

回答

0

不能完全確定爲什麼這工作,但加入了

await System.Threading.Tasks.Task.Yield(); 

之前調用ShellTile.Create似乎工作。