有没有办法通过混合在xap外部包含图像? [英] Is there a way to include an image outside the xap through blend?

查看:82
本文介绍了有没有办法通过混合在xap外部包含图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望图像在xap之外动态加载,所以我不会增加xap大小。


 


< >当我将图像添加到项目中的文件夹中时,它会自动将其转换为资源类型。我同时有视觉工作室,这就是我注意到的。


 


然而从资源变回"无"在visual studio中意味着当我运行带有链接到图像控件的图像的silverlight应用程序时,它不再出现在我的页面上。有没有一种简单的方法可以做到这一点?

解决方案

只要你能得到服务xap的任何web服务器所服务的图像那么是。图像控件可以通过URI加载图像。


I want the image to be dynamically loaded outside of the xap so I don't increase the xap size.

 

Hey when I add an image to a folder in my project in blend it automatically converts it to a resource type. I Had visual studio up at the same time so thats how I noticed.

 

However changing from resource back to "none" in visual studio means it no longer appears on my page when I run the silverlight app with the image linked to an image control. Is there an easy way to do this?

解决方案

As long as you can get the image to be served by whatever web server is serving the xap then yes. The image control can load images by URI.


这篇关于有没有办法通过混合在xap外部包含图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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