This is a mirror of official site: http://jasper-net.blogspot.com/

Does your Silverlight application really have to end in .XAP?

| Sunday, January 23, 2011
Introduction
We have heard it in books by speakers and even Microsoft. "When hosting a Silverlight application, make sure your file ends in .XAP". But does it really have to end in .XAP?  

The Answer
The answer is surprisingly no. It is time to end the myth that when hosting a Silverlight application, it has to end in .XAP. Let’s look at a sample Silverlight project first.

File-> New Project
When you create a new Silverlight Project and inspect the ClientBin folder, you will see that the filename ends in .XAP.

What do you think would happen if we renamed this file to .zip and updated our hosting page to look like the following?

<div id="silverlightControlHost">

     
     
     
     
     
     http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">Get Microsoft Silverlight
     
</div>


OK, now this is interesting

If we run the application, it works just like it does with the file named .XAP. We can view the page source on the Silverlight application and verify this.

Read more: Codeproject

Posted via email from Jasper-net

0 comments: