Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localize application icon and default tile icon?

I know the trick to localize the application title for a windows phone 7 application:

http://patrickgetzmann.wordpress.com/wp7-localize/#comment-249

http://msdn.microsoft.com/en-us/library/ff967550%28v=vs.92%29.aspx

Is there a (maybe similar) way to localize the application icon (I need a different icon for each language) and default tile icon (called "background image" in project settings)?

like image 404
Rico Suter Avatar asked Dec 01 '25 20:12

Rico Suter


1 Answers

You can modify the image of the tile icon when the app first starts using ShellTile.ActiveTiles.First().Update(...). Don't know about application icon or changing things before you start, but perhaps the sample code from that msdn article would also work for additional resources, so when they ask to define resources like this one:

AppTileString, 200, "The English (United States) name of your application to be displayed in the application Tile when pinned to Start."

-that is later used in the manifest file as:

@AppResLib.dll,-200

-maybe you could also define something like

AppTileIconPath, 300, "The name of the tile icon file"

Then try using it like:

<BackgroundImageURI IsRelative="true" IsResource="false">@AppResLib.dll,-300</BackgroundImageURI>

This might not work really, but it's worth a shot if you really want to localize your icons.

like image 183
Filip Skakun Avatar answered Dec 03 '25 13:12

Filip Skakun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!