0

アプリケーション バーのアイコン URI を含めると、それらはフォルダーに含まれますが、私のアイコンではなくデフォルトの「X」アイコンが表示されます。これが私のコードです:

<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/help.png" Text="Help"/>
        <shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarMenuItem Text="about"/>
        </shell:ApplicationBar.MenuItems>
    </shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>

表示されるデフォルトのアイコンは次のとおりです。

デフォルトの画像

4

1 に答える 1

0

プロジェクトのコンパイル方法に注意してください。特に、含めるアイコンに次のプロパティがあることを確認してください: Build Action: Content

于 2012-04-15T21:13:03.060 に答える