I’m having some major issues getting a live tile to update its image via background task, I have tried it from a web server and from local files stored in the background agent but with no luck. If I change the tile count or tile then they work fine, the image does not. I have set them as content too, I don’t see any reason why they don’t.
here’s my code:
private void updateTile()
{
int date = DateTime.Now.Day;
ShellTile tile = ShellTile.ActiveTiles.First();
Uri here = new Uri("24.jpg", UriKind.Relative);
if (tile != null)
{
if (Settings.ListOpened.Value[date] == false)
{
StandardTileData data = new StandardTileData();
data.BackgroundImage = here;
data.Title = "Help";
data.Count = 4;
tile.Update(data);
}
}
}
Go to the specific images (all 173*173px),
right-click -> properties -> in Build Action select Contentinstead of resource. This will work fine.