Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我在 Silverlight 2 中从不同服务器带来两个图像的过程?
如果您有 url,您可以将其设置为图像控件。
img1.Source=new BitmapImage(new Uri(your_url_for_the_iamge)); //img1 是你的图像控件
如果您想下载它们然后使用,您需要使用 WebClient 类,并且一个 clientaccesspolicy.xml 文件应该存在于您从中下载图像的服务器中,并且该 xml 文件应该授予您访问 Silverlight 应用程序所在位置的权限。