adamnathan.netSubscribe to this blogMetro Web BrowserTODO ListAlarm ClockTip CalculatorSound RecorderGroceriesPick a CardNotepadStopwatchMetronomePinned SearchesFake CallMood RingCocktailsTODO ListAlarm ClockTip CalculatorSound RecorderGroceriesPick a CardNotepadStopwatchMetronomePinned SearchesFake CallMood RingCocktails
 Tuesday, November 16, 2010

Almost everyone who has done some WP7 development has run into this problem and has eventually figured it out, but I thought I'd try to help people find the answer a bit faster.

The problem: Instead of seeing your icons on the appbar, you get something like the following:

buttons

The cause: This happens when the image file's build action is not set to Content (assuming you have already included the image file in your project and have set IconUri to the correct path and file). This is a very easy mistake to make because Visual Studio chooses a default build action of Resource when you add images to your project.

The solution: You can each file's build action to Content in Visual Studio's Properties window:

01Fig02

Tuesday, November 16, 2010 12:01:08 PM (Pacific Standard Time, UTC-08:00)  #    Comments [2] - Trackback    
Tracked by:
"music creation software" (music creation software) [Trackback]
Tuesday, November 16, 2010 2:26:41 PM (Pacific Standard Time, UTC-08:00)
Check out these Windows Phone 7 Application Icons - there are 350 icons in the set. http://goo.gl/rMk08
Sunday, November 21, 2010 3:33:39 AM (Pacific Standard Time, UTC-08:00)
OMG. I replace icon in appbar, build and see it doesn't change. I close project & build again, but nothing change. This problem is only solved after I read you tips. Thanks very much.
anticafe
Comments are closed.
<November 2010>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Adam's Books
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© 2012 Adam Nathan