Silverlight – Windows Phone: AppBar icon Different in the device

I mocked an application in Expression Blend. The application bar looks good in Blend, but when I start the emulator, the icon does not display properly.

XAML for the application bar:


< shell:ApplicationBarIconButton IconUri="/assets/appbar.favs.rest.png" Text="favorites"/>

The bottom left is how it is presented in Expression Blend . The bottom right is how it is displayed in the simulator.

What am I doing wrong here?

Make sure that appbar.favs.rest.png is marked as the content in the attribute -> build operation .

I mocked an application in Expression Blend. The application bar looks good in Blend, but when I start the emulator, the icon does not display properly.

XAML for the application bar:



The lower left is the rendering in Expression Blend Way. The bottom right is how it is displayed in the simulator.

What am I doing wrong here?

Make sure that appbar.favs.rest.png is marked as the content in the properties -> Build operation.

Leave a Comment

Your email address will not be published.