动态加载XAP文件 [英] Loading XAP files dynamically

查看:64
本文介绍了动态加载XAP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


如何加载不同的XAP文件(这不是我的应用程序的一部分)
进入我的Silverlight4业务应用程序项目?

不使用MEF,我该如何实现?

问候,
JN

Hi All,


How to load different XAP files (which are not part of my application )
into my Silverlight4 Business Application project?

Without using MEF,how can I achieve this?

Regards,
JN

推荐答案

如何加载不同的XAP文件(它们不是我的应用程序的一部分)
将OBJECT html标签动态地嵌入到HTML页面中.因此,您将可以灵活地在代码运行时更改XAP路径.根据需要形成对象标签(用于Silverlight控件),然后将该对象标签添加到页面中.

试试!
How to load different XAP files (which are not part of my application )
Embed the OBJECT html tag dynamically into the HTML page. Thus, you will get the flexibility to change the XAP path at runtime in your code. Form the object tag (for Silverlight control) as per your need and add that object tag to your page.

Try!


Dim c As New WebClient
     AddHandler c.OpenReadCompleted, AddressOf AssemblyDownloadedpb
     c.OpenReadAsync(New Uri("........xap", UriKind.Relative))


这篇关于动态加载XAP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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