本文介绍了WP7 应用程序栏图标未显示在模拟器上(但可在 Blend 中使用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这很可能是一个愚蠢的错误,但谁能告诉我为什么我的图标显示在 Blend 中,而不显示在模拟器中(而不是在 VS10 中,但这并不是真正的问题)?
It is most probably a stupid mistake, but can anyone tell me why my icons are showing in Blend, but not in the simulator (and not in VS10, but that's not really an issue)?
编辑 - 这是我的 XAML :
Edit - Here is my 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 和 black 前景,因为 appbar.*.rest.png
文件在 Microsoft图标文件夹
My four .png files are 48x48, transparent .png with black foreground, since the appbar.*.rest.png
files where like that and found in the Microsoft icons folder
推荐答案
确保图像属性build to action"是Content.
这篇关于WP7 应用程序栏图标未显示在模拟器上(但可在 Blend 中使用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!