开发者

Silverlight: How to load and run another silverlight .xap file

开发者 https://www.devze.com 2022-12-30 10:58 出处:网络
I want to know whether is it possible to load and run another xap file in a开发者_运维技巧 xap file.

I want to know whether is it possible to load and run another xap file in a开发者_运维技巧 xap file.

If its possible please tell me how to do that with code. Thanks in advance!


You'd typically load an assembly contained within that .xap into the appdomain of your executing application (remember that .xap files are nothing more than .zip files renamed.)

You can request the assembly from your running code by using the WebClient.

Here's a straightforward way of doing this:

On Demand Loading of Assemblies in Silverlight


You can also use Microsoft Prism (now Composite Application Guidance) to create modules that are loaded on demand:

http://www.codeproject.com/KB/silverlight/sl3prismnav.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号