WynApse Home Page
Home    Blog    About    Contact       
Latest Article:


My Tags:
My Sponsors:







Lifetime Member:

Why aren't my WP7 ApplicationBar icons displaying?



One of those stupid things

I attended the Windows Phone 7 Unleashed event in Chandler, Arizona and for the most part enjoyed the experience. The HOL documents left something to be desired, however.

Ignoring all of the things that didn't work because of the documentation itself, there's one item that bears mentioning because it's important to WP7 devs, and if you get hit with it, it's not an obvious thing to go to for the fix.

I ended up finding my solution here: Windows Phone ApplicationBarIconButton not displaying icons, but since it was in the document we were given, I thought I'd replicate the information.

In the documentation, we were told to drag a folder full of images and icons into the project, then through the use of some boilerplate code, added an ApplicationBar to the project. When you did so, you got this:



And trust me, those Xs are NOT the icons we were given. The funnier part is that the screenshot above is the *exact* screenshot from the HOL documentation, so I'm not sure what to make of it.

The ApplicationBar was functional, once you figured out the errors in the HOL, but it bugged me that the images were not correct, I mean, that's pretty stupid simple stuff, right?

I found a couple things and tried them, and finally came across the post above from the MCS UK Solution Development Team, and then felt stupid... all you need to do is change the icons from "Resource" to "Content" in the properties window:



And that's it! Rebuild that puppy, and you've got icons:



Thank you, MCS UK Solution Development Team, and

Stay in the 'Light!



Microsoft MVP

Member of WPF and Silverlight Insiders

Creative Commons License

Copyright © 2006-2012, WynApse