WP7应用程序栏图标不显示在模拟器(但在混合工作) [英] WP7 Application Bar Icons not showing on Simulator (but works in Blend)

查看:142
本文介绍了WP7应用程序栏图标不显示在模拟器(但在混合工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是最可能是一个愚蠢的错误,但谁能告诉我为什么我的图标在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>



我那个4 .png文件的48x48的,透明的PNG用的的前景,因为 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

推荐答案

请确保图片属性建立行动内容

这篇关于WP7应用程序栏图标不显示在模拟器(但在混合工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆