Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone: AppBar icons appearing differently on the device

I'm mocking up an app in Expression Blend. The app bar looks fine in Blend, but when I launch the emulator the icon doesn't display properly.

The XAML for the app bar:

    <shell:ApplicationBar x:Name="FavoritesBar" IsVisible="True" IsMenuEnabled="True">
      <shell:ApplicationBarIconButton IconUri="/assets/appbar.favs.rest.png" Text="favorites"/>
  </shell:ApplicationBar>

Below left is the way it is rendered in Expression Blend. Below right is the way it appears in the emulator.

showing the problem: expression blend on left, wp7 emulator on right

What could I be doing wrong here?

like image 412
Nick Heiner Avatar asked Feb 27 '23 01:02

Nick Heiner


1 Answers

Make sure you have marked the appbar.favs.rest.png as Content in Properties->Build Action.

like image 78
JP Alioto Avatar answered Mar 21 '23 07:03

JP Alioto