gpt4 book ai didi

windows-phone-7 - 图像文件不显示

转载 作者:行者123 更新时间:2023-12-04 07:04:52 24 4
gpt4 key购买 nike

在我的 XAML 代码中,我这样写:

<Image Source="/Images/male32.png" Visibility="Visible" />

我的项目文件结构如下所示:

enter image description here

但是我的图片没有加载??如您所见,我正在尝试添加我在项目的 Images 文件夹中的 male32.png 图像。

最佳答案

检查图像的构建操作。

例子:当您使用“内容”类型的“构建操作”时,您可以通过以下方式访问您的图像:

<Image Stretch="None" Source="/images/appbar.cancel.rest.png"/>

当您使用“Resource”类型的“Build Action”时,您可以通过这种方式访问​​图像:

<Image Source="/WP7SampleProject3;component/images/appbar.feature.email.rest.png"/>

关于windows-phone-7 - 图像文件不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11394760/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com