这很可能是一个愚蠢的错误,但是谁能告诉我为什么我的图标显示在 Blend 中,而不是显示在模拟器中(VS10 中也没有,但这并不是真正的问题)?

WP7 Application Bar Icons. Blend (left), Simulator (right)

编辑 - 这是我的 XAML:

    <phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/share.png" Text="Partager"/>
        <shell:ApplicationBarIconButton IconUri="/Images/appbar.edit.rest.png" Text="Note"/>
        <shell:ApplicationBarIconButton IconUri="/Images/appbar.feature.camera.rest.png" Text="Photos/Vidéos"/>
        <shell:ApplicationBarIconButton IconUri="/Images/calendar.png" Text="Rendez-vous"/>
        <shell:ApplicationBar.MenuItems> 
            <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
            <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
        </shell:ApplicationBar.MenuItems>
    </shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>

我的四个 .png 文件大小为 48x48,透明 .png 带有 黑色的 前景,因为 appbar.*.rest.png 文件类似,可以在 Microsoft 图标文件夹中找到

有帮助吗?

解决方案

确认的是,图片属性 '的构建到动作' 是内容

其他提示

你的图标是:

  • 透明,前景白色
  • 合适的尺寸 (48x48)
  • PNG

?如果是这样,那应该没问题。您的 XAML 是什么样的?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top