I tried to display an icon in my Windows Phone 7 application:
<shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar.feature.settings.rest.png" Text="Settings" />
By default, when you add an image to the solution folder it sets the build action as Resource, as shown below:
But when you run the application with the Build Action as Resource you will get a result looking like this:
While I really meant an icon looking like this:
How do we fix it?
Set the Build Action to Content!
And this is the result: