将图像放入Silverlight [英] Put image in silverlight

查看:71
本文介绍了将图像放入Silverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是silverlight4的新手.我想将图像放入silverlight应用程序.我将图像保存在应用程序内的images文件夹中.
我将图片来源设为source ="images/fruits.jpg"
但是由于文件不属于项目或它的生成操作"属性未设置为资源",因此显示警告.
执行它时什么也没显示.

在此先谢谢您.

Hi,

I am new to silverlight4.I want to put image in silverlight application.I kept the image in images folder inside the application.
I put source of image as source="images/fruits.jpg"
But its showing warning as the file is not part of project or its ''Build Action'' property is not set to ''Resource''.
While executing it its shows nothing.

Thanks in advance.

推荐答案

在您的项目的解决方案资源管理器中,右键单击fruit.jpg并转到属性设置 Build Action property to Resource.然后构建项目.

希望对您有所帮助:)
In the solution explorer of your project right click on fruits.jpg and go to properties set the Build Action property to Resource. And then build the project.

Hope it helps :)


这篇关于将图像放入Silverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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