Ich entwickle meine erste Windows Phone 7-Anwendung und ich muss eine Anwendungsleiste mit Symbolen hinzufügen.Windows Phone 7 zeigt keine Symbole in ApplicationBar Tasten
I bezeichnet diese "How To": http://msdn.microsoft.com/en-us/library/ff431786(VS.92).aspx ("Erstellen einer Anwendungsleiste in XAML" Absatz)
Aber wenn ich Emulator laufen kann ich nicht INCONS sehen: Ich habe den schwarzen Kreis mit X in der Mitte zu sehen und Ereignis ApplicationBarIconButton_Click korrekt ausgelöst.
Ich verwende Symbol aus WP7AppBarIcons.zip Proben und mein Code unten geschrieben:
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
<shell:ApplicationBarIconButton IconUri="/images/appbar.transport.play.rest.png" Text="Home" Click="ApplicationBarIconButton_Click"/>
<shell:ApplicationBarIconButton IconUri="/images/appbar.favs.rest.png" Text="Preferiti" Click="ApplicationBarIconButton_Click"/>
<shell:ApplicationBarIconButton IconUri="/images/appbar.questionmark.rest.png" Text="About" Click="ApplicationBarIconButton_Click"/>
<shell:ApplicationBar.MenuItems>
<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
<shell:ApplicationBarMenuItem Text="MenuItem 2"/>
</shell:ApplicationBar.MenuItems>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
Offensichtlich habe ich einen Stammlösung Ordner mit dem Namen „Bilder“ enthält die erwähnten 48 x 48 Symbole.
Vielen Dank!