Jason94
Jason94

Reputation: 13610

Is there a size restraint for background image for standard tile data?

I'm trying to create a secondary tile with StandardTileData:

StandardTileData tileData = new StandardTileData()
{
    Title = "",
    BackgroundImage = new Uri("/wifi.png", UriKind.Relative)
};

But the BackgroundImage is not set, are there some size restrictions? Do the image have to have a certain property set?

Upvotes: 1

Views: 311

Answers (1)

MarcinJuraszek
MarcinJuraszek

Reputation: 125620

Image size is not the problem here, it's the file location.

Your BackgrounImage image has to be saved into shared folder:

If the URI references an image that was stored in isolated storage, then the image must be in the Shared\ShellContent folder. For more information, see Data for Windows Phone.

Upvotes: 3

Related Questions