Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

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!
 
Share this answer
 
VB
Dim c As New WebClient
     AddHandler c.OpenReadCompleted, AddressOf AssemblyDownloadedpb
     c.OpenReadAsync(New Uri("........xap", UriKind.Relative))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900