I'm trying t开发者_开发技巧o create new icons for my windows phone 7 app. Whenever I run the app I get the default icons. This has been my process.
- I created a 200 px x 200 px icon in photoshop.
- I exported 62 px, 99 px and 173 px square versions as PNG files.
- I copied these to the images folder in my project and then ADDed them as existing files in Visual Studio 2010.
- I selected each image and changed their properties to "Content" and "Copy Always".
- I right-clicked properties and selected the appropriate icons for Icon and BackgroundImage.
- Cleaned the solution and uninstalled previous installations from the phone.
- Rebuilt the project and checked the WMAppManifest.xml to be sure the proper PNGs were listed.
- I redeploy the app and the default icons continue to show in the emulator and the device when either type of deploy is tried.
Any suggestions as to what I'm missing?
There are three images that are automatically added in your WP7 project - ApplicationIcon.png, Background.png and SplashScreenImage.jpg
. These are the three images you need to change (directly, not a copy). The names are important as well, since WP7 will look for those filenames in particular.
ApplicationIcon.png
is the small tile you see when you slide to the right of your home screen and see the list of apps.
Background.png
is the tile that gets shown when pinned to your homescreen.
SplashScreen.jpg
is the splash screen that gets shown when your app is first launched.
The 200x200 (and other image sizes you created) don't have to be part of the application itself. They're used for your Marketplace submission. Depending on how the user is browsing the marketplace, the relevant sized tile will be shown. You don't need to include those in the XAP as you'll be asked to upload them when you submit your app. Only the three files mentioned at the beginning need to be in the XAP.
The art files you add to your project need to be in the root directory of your project with your App.xaml. At least this is what fixed it for me. When I added the new art to the images directory they showed up in the properties panel and I could select them. However they did not get used when deployed. I did try changing the path manually in the manifest but that didn't work (or I typed it wrong). Moving the icon art to the root fixed the issue.
精彩评论