views:

289

answers:

2

Hi, 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!

A: 

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

Pierreten
A: 

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

Igor Zevaka