【发布时间】:2011-05-15 01:15:55
【问题描述】:
这很可能是一个愚蠢的错误,但是谁能告诉我为什么我的图标显示在 Blend 中,但没有显示在模拟器中(在 VS10 中没有,但这不是真正的问题)?
编辑 - 这是我的 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 图标文件夹中找到了类似的位置
【问题讨论】:
标签: c# vb.net xaml windows-phone-7 windows-phone-8