我一直在苦苦掙扎幾天。我正在製作當地的天氣應用程序,我希望該圖塊顯示圖像(weathericon)和文本(地點名稱+溫度)。如何在程序未運行時更新活動磁貼?
在代碼中,你可以這樣做:
ShellTile firstTile = ShellTile.ActiveTiles.First();
var newData = new StandardTileData()
{
Title = "Placename, 50F",
BackgroundImage = new Uri("background.png", UriKind.Relative),
};
// Update the default tile
firstTile.Update(newData);
但你如何做到這一點,而應用程序無法運行,所以我不必打開應用程序更新的磚,但它本身做的。
如果你的應用程序沒有運行,你將無法更新磁貼。 – 2012-03-14 12:06:47